googlemaps
Python client library for Google Maps API Web Services
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.2%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Python client library for Google Maps API Web Services
Basic Info
Statistics
- Stars: 4,804
- Watchers: 187
- Forks: 1,334
- Open Issues: 69
- Releases: 29
Topics
Metadata Files
README.md
Python Client for Google Maps Services
Description
Use Python? Want to geocode something? Looking for directions? Maybe matrices of directions? This library brings the Google Maps Platform Web Services to your Python application.
The Python Client for Google Maps Services is a Python Client library for the following Google Maps APIs:
- Directions API
- Distance Matrix API
- Elevation API
- Geocoding API
- Geolocation API
- Time Zone API
- Roads API
- Places API
- Maps Static API
- Address Validation API
Keep in mind that the same terms and conditions apply to usage of the APIs when they're accessed through this library.
Support
This library is community supported. We're comfortable enough with the stability and features of the library that we want you to build real production applications on it. We will try to support, through Stack Overflow, the public and protected surface of the library and maintain backwards compatibility in the future; however, while the library is in version 0.x, we reserve the right to make backwards-incompatible changes. If we do remove some functionality (typically because better functionality exists or if the feature proved infeasible), our intention is to deprecate and give developers a year to update their code.
If you find a bug, or have a feature suggestion, please log an issue. If you'd like to contribute, please read contribute.
Requirements
- Python 3.5 or later.
- A Google Maps API key.
API Keys
Each Google Maps Web Service request requires an API key or client ID. API keys are generated in the 'Credentials' page of the 'APIs & Services' tab of Google Cloud console.
For even more information on getting started with Google Maps Platform and generating/restricting an API key, see Get Started with Google Maps Platform in our docs.
Important: This key should be kept secret on your server.
Installation
$ pip install -U googlemaps
Note that you will need requests 2.4.0 or higher if you want to specify connect/read timeouts.
Usage
This example uses the Geocoding API and the Directions API with an API key:
```python import googlemaps from datetime import datetime
gmaps = googlemaps.Client(key='Add Your Key here')
Geocoding an address
geocode_result = gmaps.geocode('1600 Amphitheatre Parkway, Mountain View, CA')
Look up an address with reverse geocoding
reversegeocoderesult = gmaps.reverse_geocode((40.714224, -73.961452))
Request directions via public transit
now = datetime.now() directionsresult = gmaps.directions("Sydney Town Hall", "Parramatta, NSW", mode="transit", departuretime=now)
Validate an address with address validation
addressvalidation_result = gmaps.addressvalidation(['1600 Amphitheatre Pk'], regionCode='US', locality='Mountain View', enableUspsCass=True)
Get an Address Descriptor of a location in the reverse geocoding response
addressdescriptorresult = gmaps.reversegeocode((40.714224, -73.961452), enableaddress_descriptor=True)
```
For more usage examples, check out the tests.
Features
Retry on Failure
Automatically retry when intermittent failures occur. That is, when any of the retriable 5xx errors are returned from the API.
Building the Project
# Installing nox
$ pip install nox
# Running tests
$ nox
# Generating documentation
$ nox -e docs
# Copy docs to gh-pages
$ nox -e docs && mv docs/_build/html generated_docs && git clean -Xdi && git checkout gh-pages
Documentation & resources
Documentation for the google-maps-services-python library
Getting started
- Get Started with Google Maps Platform
- Generating/restricting an API key
- Authenticating with a client ID
API docs
- Google Maps Platform web services
- Directions API
- Distance Matrix API
- Elevation API
- Geocoding API
- Geolocation API
- Time Zone API
- Roads API
- Places API
- Maps Static API
Support
Owner
- Name: Google Maps Platform
- Login: googlemaps
- Kind: organization
- Website: https://developers.google.com/maps
- Twitter: GMapsPlatform
- Repositories: 73
- Profile: https://github.com/googlemaps
Google Maps Platform is a set of APIs and SDKs for retrieving location-based data from Google and embedding Google Maps imagery into mobile apps and web pages.
GitHub Events
Total
- Issues event: 5
- Watch event: 276
- Issue comment event: 14
- Push event: 3
- Pull request review event: 6
- Pull request review comment event: 7
- Pull request event: 4
- Fork event: 56
- Create event: 1
Last Year
- Issues event: 5
- Watch event: 276
- Issue comment event: 14
- Push event: 3
- Pull request review event: 6
- Pull request review comment event: 7
- Pull request event: 4
- Fork event: 56
- Create event: 1
Committers
Last synced: 9 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Stephen McDonald | s****e@j****g | 91 |
| Justin Poehnelt | j****t@g****m | 67 |
| Chris Broadfoot | c****o@g****m | 66 |
| Brett Morgan | b****n@g****m | 34 |
| semantic-release-bot | s****t@m****t | 24 |
| Mark McDonald | m****d@g****m | 13 |
| Chris Arriola | c****a@g****m | 12 |
| Sam Thorogood | s****d@g****m | 10 |
| Dave Holmes | d****s@g****m | 7 |
| Matthew Wilkens | m****s@g****m | 5 |
| googlemaps-bot | g****t@g****m | 4 |
| Angela Yu | 5****a | 4 |
| rbouchez | r****z@n****m | 4 |
| Cris Bettis | c****s@r****m | 4 |
| Ali | a****r@g****m | 3 |
| Chinmay Pai | c****i@g****m | 3 |
| Kerrick Staley | k****y@l****m | 3 |
| Luke Mahe | l****m@g****m | 3 |
| David Robles | d****s@h****m | 2 |
| anglarett | a****t@g****m | 2 |
| Pi Delport | p****t@g****m | 2 |
| Florian Demmer | f****r@g****m | 2 |
| Craig | T****n | 2 |
| Apostolos Spanos | a****n@g****m | 2 |
| Andreas Backx | a****s@b****g | 1 |
| Andrew Gomez | a****9@g****m | 1 |
| Andrew Naoum | a****w@n****m | 1 |
| Andy Klimczak | a****k@f****m | 1 |
| Sean Wohltman | s****n@g****m | 1 |
| Sondre Lillebø Gundersen | s****g@l****o | 1 |
| and 33 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 97
- Total pull requests: 57
- Average time to close issues: 5 months
- Average time to close pull requests: about 2 months
- Total issue authors: 86
- Total pull request authors: 37
- Average comments per issue: 1.97
- Average comments per pull request: 1.77
- Merged pull requests: 28
- Bot issues: 0
- Bot pull requests: 1
Past Year
- Issues: 6
- Pull requests: 3
- Average time to close issues: N/A
- Average time to close pull requests: 4 minutes
- Issue authors: 6
- Pull request authors: 2
- Average comments per issue: 0.67
- Average comments per pull request: 0.33
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- R4113R (6)
- jpoehnelt (3)
- nnolan (2)
- vijaygrg27 (2)
- BugStopsHere (2)
- FinnWoelm (2)
- ChicagoDev (1)
- wuhueicheng8699 (1)
- wdhorton (1)
- lujoselu98 (1)
- tpchris1 (1)
- ZenithX9271 (1)
- t4chyon (1)
- davidbeers (1)
- BrunoCaimar (1)
Pull Request Authors
- jpoehnelt (7)
- googlemaps-bot (5)
- anglarett (5)
- anishcherukuthota (4)
- wangela (3)
- ThugPigeon653 (3)
- wescpy (2)
- morgandenning (2)
- vsemionov (2)
- il-santo (2)
- AshishAshishA (2)
- tcliff111 (2)
- Xpshnik (2)
- northtree (1)
- jloffredo2 (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 5
-
Total downloads:
- pypi 2,065,831 last-month
- Total docker downloads: 757,219,857
-
Total dependent packages: 26
(may contain duplicates) -
Total dependent repositories: 3,487
(may contain duplicates) - Total versions: 79
- Total maintainers: 4
pypi.org: googlemaps
Python client library for Google Maps Platform
- Homepage: https://github.com/googlemaps/google-maps-services-python
- Documentation: https://googlemaps.readthedocs.io/
- License: Apache 2.0
-
Latest release: 4.10.0
published about 3 years ago
Rankings
Maintainers (2)
proxy.golang.org: github.com/googlemaps/google-maps-services-python
- Documentation: https://pkg.go.dev/github.com/googlemaps/google-maps-services-python#section-documentation
- License: apache-2.0
-
Latest release: v4.10.0+incompatible
published about 3 years ago
Rankings
pypi.org: googlemaps-nb
Python client library for Google Maps API Web Services
- Homepage: https://github.com/googlemaps/google-maps-services-python
- Documentation: https://googlemaps-nb.readthedocs.io/
- License: Apache 2.0
-
Latest release: 2.5.1.dev0
published almost 8 years ago
Rankings
Maintainers (1)
conda-forge.org: googlemaps
Use Python? Want to geocode something? Looking for directions? Maybe matrices of directions? This library brings the Google Maps API Web Services to your Python application. Analytics
- Homepage: https://github.com/googlemaps/google-maps-services-python
- License: Apache-2.0
-
Latest release: 2.5.1
published over 3 years ago
Rankings
pypi.org: googlemapsaleks57
Python client library for Google Maps API Web Services
- Homepage: https://github.com/googlemaps/google-maps-services-python
- Documentation: https://googlemapsaleks57.readthedocs.io/
- License: Apache 2.0
-
Latest release: 3.0.2
published over 6 years ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v2 composite
- actions/setup-python v1 composite
- cycjimmy/semantic-release-action v2 composite
- actions/checkout v3 composite
- actions/setup-python v3 composite
- actions/checkout v3 composite
- actions/setup-python v3 composite
- peter-evans/create-pull-request v4 composite