Hi, I'm looking for an API or a combination of API's where I can send "Anjuna, India" and get back a list of places nearby. The data is mostly for "third world" countries, less so for Europe/US. Any suggestions/ideas about how to structure this?
views:
148answers:
4
A:
You would need place lists with coordinates. Then go trought that list and calculate distance between cities. Then sort results by least distance. I have not done any GPS programming tho.
Pavels
2009-05-28 07:41:26
A:
Do give Yahoo geocoding services a go http://developer.yahoo.com/maps/rest/V1/geocode.html
More here: http://developer.yahoo.com/geo/
Here is the response with your location "Anjuna India" hhttp://local.yahooapis.com/MapsService/V1/geocode?appid=YD-9G7bey8_JXxQP6rxl.fBFGgCdNjoDMACQA--&location=Anjuna+India
Webber
2009-05-28 12:30:25
+1
A:
You could make use of a couple of Yahoo's Geo APIs in the following manner.
- Get woeid (Where On Earth Identifier) for input location(s)
- Determine neighboring places
A quick example, combining those APIs together with Yahoo's YQL would provide neighbor locations for "Anjuna, India" using the query:
SELECT * FROM geo.places.neighbors WHERE neighbor_woeid IN ( SELECT woeid FROM geo.places WHERE text="Anjuna, India" LIMIT 1 )
Try this in YQL Console (must be logged in)
salathe
2009-06-02 22:02:52