Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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')

Clone this wiki locally