Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Last active August 19, 2019 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lakshay-arora/75269aa436ae0cbfe3bbf1552c800c88 to your computer and use it in GitHub Desktop.
Save lakshay-arora/75269aa436ae0cbfe3bbf1552c800c88 to your computer and use it in GitHub Desktop.
# latitude and longitude list
latitude_list = data['LATITUDE']
longitude_list = data['LONGITUDE']
# center co-ordinates of the map
gmap = gmplot.GoogleMapPlotter( 56.730876,9.349849,9)
# plot the co-ordinates on the google map
gmap.scatter( latitude_list, longitude_list, '# FF0000', size = 40, marker = True)
# the following code will create the html file view that in your web browser
gmap.heatmap(latitude_list, longitude_list)
gmap.draw( "mymap.html" )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment