We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GoogleMapPlotter.directions(origin, destination, **kwargs)
Display directions from an origin to a destination.
Requires Directions API.
Parameters
origin (float, float) – Origin, in latitude/longitude.
(float, float)
destination (float, float) – Destination, in latitude/longitude.
Optional Parameters
travel_mode str – Travel mode. Defaults to ‘DRIVING’.
str
waypoints [(float, float)] – Waypoints to pass through.
[(float, float)]
Usage:
import gmplot apikey = '' # (your API key here) gmap = gmplot.GoogleMapPlotter(37.766956, -122.438481, 13, apikey=apikey) gmap.directions( (37.799001, -122.442692), (37.832183, -122.477914), waypoints=[ (37.801036, -122.434586), (37.805461, -122.437262) ] ) gmap.draw('map.html')
Home
GoogleMapPlotter