Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plot points/circles on google map using python

I am new to Python and I am trying to plot points(longitude,latitude) on google map in Python. I found a lib gmplot for the same but I am only able to draw drop pins instead I want to draw circles/points on the map. Could anybody show an example as for how to do it? I didn't find any example in StackOverflow.

Thanks

like image 719
Hiranava Das Avatar asked Nov 03 '16 04:11

Hiranava Das


1 Answers

Look at the github page for this package. In their example they have the following;

gmap.plot(latitudes, longitudes, 'cornflowerblue', edge_width=10)

Replace 'latitudes' and 'longitudes' with arrays of the points you want.

I also saw in the code they have posted there a 'polygon' method, but the above was sufficient for what I needed.

like image 52
Ike Avatar answered Oct 05 '22 11:10

Ike