Search code examples
c#asp.netapirestgeolocation

Api to find nearby cities


I am looking for an api that I can use to find nearby cities based on coordinates or name and country(maybe with a feature to filter by distance as nearby can be up to interpretations).

I would prefer it to be restful or have a library(wrapper) that I can use in my .net application.

I am looking for a free api(with a good amount of free requests per day).

My first thought was Google and I found "The Google Geocoding API" but I am not planning to put it on a map so according to the limitations I cannot use it.

Anyone else know of any other ones that I could use?


Solution

  • Try looking at GeoNames. They have a RESTful API you can use to do reverse geocoding. Scroll down to the "Find nearby postal codes / reverse geocoding" section to see a live demo.