Find the State given Latitude and Longitude Coordinates

后端 未结 4 927
一向
一向 2021-02-06 16:14

I have a set of 900 Latitude and Longitude Coordinates-- I need a relatively simple method for finding the \'State\' referred to by these coordinates. If it helps, the data is

4条回答
  •  生来不讨喜
    2021-02-06 16:48

    Google requires that geocoding / reverse geocoding be used with maps that users can see, so if that isn't an option for you, I think the best way is to use a database with spatial functions. First, you'll need the state boundaries found for free at NationalAtlas.gov. I use SQL Server (need 2008 or 2012 versions) and you can use the STContains() method to find what state it belongs to.

提交回复
热议问题