-
Notifications
You must be signed in to change notification settings - Fork 256
GoogleMapPlotter.grid
frslm edited this page Jun 26, 2020
·
4 revisions
GoogleMapPlotter.grid(lat_start, lat_end, lat_increment, lng_start, lng_end, lng_increment)
Plot a grid.
-
Parameters
-
lat_start
float– Starting latitude of the grid. -
lat_end
float– Ending latitude of the grid. -
lat_increment
float– Distance between latitudinal divisions. -
lng_start
float– Starting longitude of the grid. -
lng_end
float– Ending longitude of the grid. -
lng_increment
float– Distance between longitudinal divisions.
-
Usage:
import gmplot
apikey = '' # (your API key here)
gmap = gmplot.GoogleMapPlotter(37.425, -122.145, 16, apikey=apikey)
gmap.grid(37.42, 37.43, 0.002, -122.15, -122.14, 0.0025)
gmap.draw('map.html')