Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serpapi/google-maps-pb-decoder
Google Maps pb (i.e., protobuf) parameter decoder.
https://github.com/serpapi/google-maps-pb-decoder
google-maps google-maps-scraping ruby web-scraping webscraping
Last synced: about 2 months ago
JSON representation
Google Maps pb (i.e., protobuf) parameter decoder.
- Host: GitHub
- URL: https://github.com/serpapi/google-maps-pb-decoder
- Owner: serpapi
- License: mit
- Created: 2023-10-18T23:07:11.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-20T04:32:30.000Z (about 1 year ago)
- Last Synced: 2024-04-24T10:15:05.518Z (9 months ago)
- Topics: google-maps, google-maps-scraping, ruby, web-scraping, webscraping
- Language: Ruby
- Homepage:
- Size: 9.77 KB
- Stars: 7
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# google-maps-pb-decoder
[![CI](https://github.com/serpapi/google-maps-pb-decoder/actions/workflows/main.yml/badge.svg)](https://github.com/serpapi/google-maps-pb-decoder/actions/workflows/main.yml)
Decodes the protobuf parameters used in Google Maps into readable JSON for easy inspection and debugging.
## Installation
Add to your Gemfile:
```ruby
gem 'google_maps_pb_decoder'
```Then, run `bundle install`.
Or, install the gem directly:
```
gem install google_maps_pb_decoder
```## Usage
```
google_maps_pb_decoder
```For example:
```
google_maps_pb_decoder '!3m1!4b1!4m6!3m5!1s0x80dcd7d12b3b5e6b:0x2ef62f8418225cfa!8m2!3d33.8120918!4d-117.9189742!16zL20vMDJmenM'
```Output:
```
[[true], [["0x80dcd7d12b3b5e6b:0x2ef62f8418225cfa", [33.8120918, -117.9189742], "L20vMDJmenM"]]]
```## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).