GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Get nearby places  XML
Forum Index -> General
Author Message
luisrecuenco



Joined: 27/09/2009 21:56:56
Messages: 1
Offline

Hello all,

This is my first post and hope I get my doubt solved.

I need to get nearby places from a specific location (described by lat/long 4 instance). I have managed to do it by a simple http request to google:

http://maps.google.com/maps?q=pizza&near=37.3,-122&num=20&output=kml

Output can be either KML or JSON with the info of the places I need. Then I´ll have to parse it in order to extract the info I want.

I need to do the same but in this case by using Geoname API. I know there are some functions for nearby places but it returns the most populated place or the postal codes of the cities next to you. I don´t need that...so I have thought of using the function search:

http://www.geonames.org/export/geonames-search.html

I have no idea how to get nearby places (banks, museums, pubs, petrol stations...) from a concrete place with that function.

Any idea??? I need some help!

Thanks in advance.


marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

The search service is a search service and not a reverse geocoding service.

You have to use the most generic reverse geocoding service:
http://www.geonames.org/export/web-services.html#findNearby

Marc

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team