Bing API for finding nearby cities

Is there a Bing API for finding nearby cities with a city name or lat / long combination?

+6
geolocation reverse-geocoding bing-maps
source share
4 answers

I don't know if Bing provides this, but you create your own from data available from geonames.org

They provide an API for getting places next to a given lat / lng: http://api.geonames.org/findNearby?lat=47.3&lng=9&username=demo

Or you can also do your best to implement the solution for your needs using your data, in accordance with this answer: Given the lat / long coordinates, how can we find out the city / country?

+1
source share

I think this is what you are looking for: Bing Maps API Example

0
source share

Short answer: no, there is no Bing API to search for nearby cities.

However, one could β€œcook your own” using existing APIs. However, one thing that needs clarification is what β€œnearby” means. I assume that you mean in a certain radius of a given point (defined by the name of the city or a combination of lat / long).

Using Bing Api, it would be pretty trivial to implement an algorithm to change the geocoding of a location, and then check places at a distance of x.

Otherwise, you can use something like geoPlugin, it is free, and you can put it on your server - thus avoiding problems from third-party developers. http://www.geoplugin.com/webservices/php#php_class

Take a look at the functions of nearby places; this does exactly what you want. http://www.geoplugin.com/webservices/extras

0
source share

No no. However, it is relatively simple to get the bounding box for the given coordinate, and then use the Bing API with this. I do this and used this solution to get what I need ...

fooobar.com/questions/13236 / ...

0
source share

All Articles