2021年1月14日星期四

How to get bounding polygon(s) for a country in Google Maps

Let's say I want to see if a point is within one or more polygons. For example, if I have an IP and I want to see if that IP is in a particular state in the US. For example: California.

enter image description here

Is it possible to retrieve the polygon (in this case it seems like multiple polygons as maybe there are some small islands off the coast) of this state, or how can that data be retrieved from Google Maps?

https://stackoverflow.com/questions/65729933/how-to-get-bounding-polygons-for-a-country-in-google-maps January 15, 2021 at 11:05AM

没有评论:

发表评论