{"id":13412341,"url":"https://github.com/googlemaps/google-maps-services-python","last_synced_at":"2025-05-12T16:32:58.226Z","repository":{"id":19722800,"uuid":"22978655","full_name":"googlemaps/google-maps-services-python","owner":"googlemaps","description":"Python client library for Google Maps API Web Services","archived":false,"fork":false,"pushed_at":"2025-03-09T02:22:08.000Z","size":1031,"stargazers_count":4730,"open_issues_count":67,"forks_count":1322,"subscribers_count":187,"default_branch":"master","last_synced_at":"2025-05-05T14:53:55.907Z","etag":null,"topics":["client-library","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googlemaps.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-08-15T04:35:30.000Z","updated_at":"2025-05-01T03:47:41.000Z","dependencies_parsed_at":"2023-02-15T04:01:30.453Z","dependency_job_id":"8c53ca1c-84c7-4e2f-a535-0e13924a4fd1","html_url":"https://github.com/googlemaps/google-maps-services-python","commit_stats":{"total_commits":407,"total_committers":67,"mean_commits":6.074626865671642,"dds":0.7764127764127764,"last_synced_commit":"645e07de5a27c4c858b2c0673f0dd6f23ca62d28"},"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Fgoogle-maps-services-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Fgoogle-maps-services-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Fgoogle-maps-services-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlemaps%2Fgoogle-maps-services-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googlemaps","download_url":"https://codeload.github.com/googlemaps/google-maps-services-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253777119,"owners_count":21962630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client-library","python"],"created_at":"2024-07-30T20:01:23.608Z","updated_at":"2025-05-12T16:32:58.164Z","avatar_url":"https://github.com/googlemaps.png","language":"Python","readme":"Python Client for Google Maps Services\n====================================\n\n![Test](https://github.com/googlemaps/google-maps-services-js/workflows/Test/badge.svg)\n![Release](https://github.com/googlemaps/google-maps-services-js/workflows/Release/badge.svg)\n[![codecov](https://codecov.io/gh/googlemaps/google-maps-services-python/branch/master/graph/badge.svg)](https://codecov.io/gh/googlemaps/google-maps-services-python)\n[![PyPI version](https://badge.fury.io/py/googlemaps.svg)](https://badge.fury.io/py/googlemaps)\n![PyPI - Downloads](https://img.shields.io/pypi/dd/googlemaps)\n![GitHub contributors](https://img.shields.io/github/contributors/googlemaps/google-maps-services-python)\n\n## Description\n\nUse Python? Want to geocode something? Looking for directions?\nMaybe matrices of directions? This library brings the Google Maps Platform Web\nServices to your Python application.\n\nThe Python Client for Google Maps Services is a Python Client library for the following Google Maps\nAPIs:\n\n - Directions API\n - Distance Matrix API\n - Elevation API\n - Geocoding API\n - Geolocation API\n - Time Zone API\n - Roads API\n - Places API\n - Maps Static API\n - Address Validation API\n\nKeep in mind that the same [terms and conditions](https://developers.google.com/maps/terms) apply\nto usage of the APIs when they're accessed through this library.\n\n## Support\n\nThis library is community supported. We're comfortable enough with the stability and features of\nthe library that we want you to build real production applications on it. We will try to support,\nthrough Stack Overflow, the public and protected surface of the library and maintain backwards\ncompatibility in the future; however, while the library is in version 0.x, we reserve the right\nto make backwards-incompatible changes. If we do remove some functionality (typically because\nbetter functionality exists or if the feature proved infeasible), our intention is to deprecate\nand give developers a year to update their code.\n\nIf you find a bug, or have a feature suggestion, please log an issue. If you'd like to\ncontribute, please read contribute.\n\n## Requirements\n\n - Python 3.5 or later.\n - A Google Maps API key.\n\n## API Keys\n\nEach Google Maps Web Service request requires an API key or client ID. API keys\nare generated in the 'Credentials' page of the 'APIs \u0026 Services' tab of [Google Cloud console](https://console.cloud.google.com/apis/credentials).\n\nFor even more information on getting started with Google Maps Platform and generating/restricting an API key, see [Get Started with Google Maps Platform](https://developers.google.com/maps/gmp-get-started) in our docs.\n\n**Important:** This key should be kept secret on your server.\n\n## Installation\n\n    $ pip install -U googlemaps\n\nNote that you will need requests 2.4.0 or higher if you want to specify connect/read timeouts.\n\n## Usage\n\nThis example uses the Geocoding API and the Directions API with an API key:\n\n```python\nimport googlemaps\nfrom datetime import datetime\n\ngmaps = googlemaps.Client(key='Add Your Key here')\n\n# Geocoding an address\ngeocode_result = gmaps.geocode('1600 Amphitheatre Parkway, Mountain View, CA')\n\n# Look up an address with reverse geocoding\nreverse_geocode_result = gmaps.reverse_geocode((40.714224, -73.961452))\n\n# Request directions via public transit\nnow = datetime.now()\ndirections_result = gmaps.directions(\"Sydney Town Hall\",\n                                     \"Parramatta, NSW\",\n                                     mode=\"transit\",\n                                     departure_time=now)\n\n# Validate an address with address validation\naddressvalidation_result =  gmaps.addressvalidation(['1600 Amphitheatre Pk'], \n                                                    regionCode='US',\n                                                    locality='Mountain View', \n                                                    enableUspsCass=True)\n\n# Get an Address Descriptor of a location in the reverse geocoding response\naddress_descriptor_result = gmaps.reverse_geocode((40.714224, -73.961452), enable_address_descriptor=True)\n\n```\n\nFor more usage examples, check out [the tests](https://github.com/googlemaps/google-maps-services-python/tree/master/tests).\n\n## Features\n\n### Retry on Failure\n\nAutomatically retry when intermittent failures occur. That is, when any of the retriable 5xx errors\nare returned from the API.\n\n\n## Building the Project\n\n\n    # Installing nox\n    $ pip install nox\n\n    # Running tests\n    $ nox\n\n    # Generating documentation\n    $ nox -e docs\n\n    # Copy docs to gh-pages\n    $ nox -e docs \u0026\u0026 mv docs/_build/html generated_docs \u0026\u0026 git clean -Xdi \u0026\u0026 git checkout gh-pages\n\n## Documentation \u0026 resources\n\n[Documentation for the `google-maps-services-python` library](https://googlemaps.github.io/google-maps-services-python/docs/index.html)\n\n### Getting started\n- [Get Started with Google Maps Platform](https://developers.google.com/maps/gmp-get-started)\n- [Generating/restricting an API key](https://developers.google.com/maps/gmp-get-started#api-key)\n- [Authenticating with a client ID](https://developers.google.com/maps/documentation/directions/get-api-key#client-id)\n\n### API docs\n- [Google Maps Platform web services](https://developers.google.com/maps/apis-by-platform#web_service_apis)\n- [Directions API](https://developers.google.com/maps/documentation/directions/)\n- [Distance Matrix API](https://developers.google.com/maps/documentation/distancematrix/)\n- [Elevation API](https://developers.google.com/maps/documentation/elevation/)\n- [Geocoding API](https://developers.google.com/maps/documentation/geocoding/)\n- [Geolocation API](https://developers.google.com/maps/documentation/geolocation/)\n- [Time Zone API](https://developers.google.com/maps/documentation/timezone/)\n- [Roads API](https://developers.google.com/maps/documentation/roads/)\n- [Places API](https://developers.google.com/places/)\n- [Maps Static API](https://developers.google.com/maps/documentation/maps-static/)\n\n### Support\n- [Report an issue](https://github.com/googlemaps/google-maps-services-python/issues)\n- [Contribute](https://github.com/googlemaps/google-maps-services-python/blob/master/CONTRIB.md)\n- [StackOverflow](http://stackoverflow.com/questions/tagged/google-maps)\n","funding_links":[],"categories":["Python","Third-party Web APIs","Clients \u0026amp; API Wrappers"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglemaps%2Fgoogle-maps-services-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgooglemaps%2Fgoogle-maps-services-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglemaps%2Fgoogle-maps-services-python/lists"}