platypush.plugins.google.maps

class platypush.plugins.google.maps.GoogleMapsPlugin(api_key, *args, **kwargs)[source]

Plugins that provides utilities to interact with Google Maps API services.

__init__(api_key, *args, **kwargs)[source]
Parameters:api_key (str) – Server-side API key to be used for the requests, get one at https://console.developers.google.com
get_address_from_latlng(latitude, longitude)[source]

Get an address information given lat/long

Parameters:
  • latitude (float) – Latitude
  • longitude (float) – Longitude
get_elevation_from_latlng(latitude, longitude)[source]

Get the elevation in meters of a geo point given lat/long

Parameters:
  • latitude (float) – Latitude
  • longitude (float) – Longitude