GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Heres an easy one for you...  XML
Forum Index -> General
Author Message
gloveny



Joined: 18/05/2007 19:34:57
Messages: 5
Offline

How can I get the Long / Lat for a particular city. I would like the center of the city.

I've tried sending just the city as in http://ws.geonames.org/findNearbyPostalCodes?country=$country&city=&city=$city"); but obvioulsy this doesnt work.
Anyone know how to use this service for that or know of another service that does?

Thanks, and thanks for the geonames service. Without organisations like this giving people like us this service we would all be at the mercy of large internet companies who can offord things like this. Novelty and creative websites would be few and far between.
Graham
marc



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

Hi Graham

I think you need the search service :
http://www.geonames.org/export/geonames-search.html

The findNearbyPostalCodes is a reverse geocoding service and mainly used if you have GPS coordinates and want to know which city is at this GPS coordinates.

Cheers

Marc

[WWW]
gloveny



Joined: 18/05/2007 19:34:57
Messages: 5
Offline

Thats perfect. A Big thanks marc.
:0)
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team