All Projects → googlemaps → Google Maps Services Python

googlemaps / Google Maps Services Python

Licence: apache-2.0
Python client library for Google Maps API Web Services

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Google Maps Services Python

govpp
Go toolset for the VPP.
Stars: ✭ 119 (-96.54%)
Mutual labels:  client-library
in3-legacy
[Deprecated] Typescript-version of the IN3 client.
Stars: ✭ 69 (-98%)
Mutual labels:  client-library
embed-client
🎼 Sheet Music & Tabs Embed JavaScript Client
Stars: ✭ 43 (-98.75%)
Mutual labels:  client-library
node-meraki-dashboard
A modern node.js client library for using the Meraki Dashboard API.
Stars: ✭ 20 (-99.42%)
Mutual labels:  client-library
circles-core
Common methods to interact with the Circles ecosystem
Stars: ✭ 22 (-99.36%)
Mutual labels:  client-library
cybr-cli
A "Swiss Army Knife" command-line interface (CLI) for easy human and non-human interaction with @cyberark suite of products.
Stars: ✭ 45 (-98.69%)
Mutual labels:  client-library
js-client-library
TimeTac Client Library is a thin wrapper for client to make api request.
Stars: ✭ 11 (-99.68%)
Mutual labels:  client-library
node-imaginary
Minimalist node.js command-line & programmatic API client for imaginary
Stars: ✭ 94 (-97.27%)
Mutual labels:  client-library
c
Official C client library for Kubernetes
Stars: ✭ 83 (-97.59%)
Mutual labels:  client-library
python-cozify
Unofficial Cozify Python bindings and helpers
Stars: ✭ 15 (-99.56%)
Mutual labels:  client-library
braze-php-sdk
A PHP client to interact with Braze API
Stars: ✭ 15 (-99.56%)
Mutual labels:  client-library
agollo
🚀Go client for ctrip/apollo (https://github.com/apolloconfig/apollo)
Stars: ✭ 563 (-83.65%)
Mutual labels:  client-library
skyscanner-flight-api-client
Published on Maven Central Java Client for a Skyscanner Flight Search API hosted in Rapid API
Stars: ✭ 15 (-99.56%)
Mutual labels:  client-library
goql
A GraphQL client package written in Go.
Stars: ✭ 17 (-99.51%)
Mutual labels:  client-library
ably-python
Python REST client library SDK for Ably realtime messaging service
Stars: ✭ 20 (-99.42%)
Mutual labels:  client-library
iyzipay-ruby
iyzipay api ruby client
Stars: ✭ 37 (-98.93%)
Mutual labels:  client-library
ably-dotnet
.NET, Xamarin and Mono client library SDK for Ably realtime messaging service
Stars: ✭ 32 (-99.07%)
Mutual labels:  client-library
sdk-powershell-api-v2
Windows PowerShell SDK for Box API v2
Stars: ✭ 21 (-99.39%)
Mutual labels:  client-library
youtube-deno
A Deno client library of the YouTube Data API.
Stars: ✭ 30 (-99.13%)
Mutual labels:  client-library
kong-java-client
Java Client for Kong API Gateway configuration
Stars: ✭ 69 (-98%)
Mutual labels:  client-library

Python Client for Google Maps Services

Build Status codecov PyPI version PyPI - Downloads GitHub contributors

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

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:

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
reverse_geocode_result = gmaps.reverse_geocode((40.714224, -73.961452))

# Request directions via public transit
now = datetime.now()
directions_result = gmaps.directions("Sydney Town Hall",
                                     "Parramatta, NSW",
                                     mode="transit",
                                     departure_time=now)

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

API docs

Support

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].