Find the State given Latitude and Longitude Coordinates

后端 未结 4 926
一向
一向 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:45

    A simpler solution would be to just use the ezcmd.com rest API services. They provide two APIs:

    http://ezcmd.com/apps/app_geo_postal_codes#geo_postal_codes_api

    1) All you have to do is just give it a zip code and a country code (for usa you either use US or USA) and optionally you'll pass the distance radius, and units (Miles or Km) and it'll return all other zip codes with state and province that are within the given distance

    2) Free search, where you give it any fuzzy search phrase that includes either one of zip / city / state / province and country and it returns the best matches for that search phrase.

    Hint: You can use #2 to find the zip code for a fuzzy (human readable) address and pass that zip code to #1 to find nearest places to that zip code.

    Also they have another API that returns zip code along with full geo location information for a given IP address here:

    http://ezcmd.com/apps/app_ezip_locator#ezip_locator_api

    Enjoy ! I hope this helps.

提交回复
热议问题