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.plot(lats, lngs, color=None, c=None, **kwargs)
Plot a polyline.
Parameters
lats [float] – Latitudes.
[float]
lngs [float] – Longitudes.
Optional Parameters
color/c/edge_color/ec str – Color of the polyline. Can be hex (‘#00FFFF’), named (‘cyan’), or matplotlib-like (‘c’). Defaults to black.
str
alpha/edge_alpha/ea float – Opacity of the polyline, ranging from 0 to 1. Defaults to 1.0.
float
edge_width/ew int – Width of the polyline, in pixels. Defaults to 1.
int
precision int – Number of digits after the decimal to round to for lat/lng values. Defaults to 6.
Usage:
import gmplot apikey = '' # (your API key here) gmap = gmplot.GoogleMapPlotter(37.766956, -122.438481, 13, apikey=apikey) path = zip(*[ (37.773097, -122.471789), (37.785920, -122.472693), (37.787815, -122.472178), (37.791430, -122.469763), (37.792547, -122.469624), (37.800724, -122.469460) ]) gmap.plot(*path, edge_width=7, color='red') gmap.draw('map.html')
Home
GoogleMapPlotter