GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
How are city boundaries established  XML
Forum Index -> General
Author Message
MtnBiker



Joined: 02/01/2009 21:00:32
Messages: 13
Offline

41.505928,-81.594582 is in Redondo Beach, California, but is closer to the city hall ( and the geographic center) of Hermosa Beach, CA. Geonames comes up with Hermosa Beach (at least it does using the Ruby API), which is of course incorrect.

Is the problem with GeoNames or the Ruby gem or my use of the Ruby gem?
marc



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

The nearbyPlace works with a simple distance to center function whereas the nearbyPostalCode in the US works with boundaries.

Marc

[WWW]
MtnBiker



Joined: 02/01/2009 21:00:32
Messages: 13
Offline

marc wrote:
The nearbyPlace works with a simple distance to center function whereas the nearbyPostalCode in the US works with boundaries.

Marc 

I'm confused:
Find nearby postal codes : finds postal codes and place names for the given lat/lng within a given radius. (supported countries)
Find nearby place name : finds place names for the given lat/lng within a given radius
from http://www.geonames.org/export/reverse-geocoding.html
which is the link you gave me in the other response.

And I have another problem:

When I put in

http://ws.geonames.org/neighbourhood?lat=41.50592&lng=-81.59458

I get a blank page, but the example

http://ws.geonames.org/neighbourhood?lat=40.78343&lng=-73.96625

Works fine.

BTW, I mixed up the coordinates between Cleveland and Redondo Beach in this original posting. Correct for Redondo Beach is lat="33.86798493" lon="-118.386702"

To reiterate what is essentially the question for both my postings:

How do I get a US city from coordinates?


And the two examples are:

lat=33.86798493&lng=-118.386702 should give Redondo Beach, not Hermosa Beach

lat=41.50592&lng=-81.59458 should be Cleveland (Heights), not Little Italy

Thanks marc for your response.
marc



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

I don't know what you expect me to say. There are a couple of reverse geocoding services based on different datasets. You will have to try yourself which one you like best.

Marc

[WWW]
MtnBiker



Joined: 02/01/2009 21:00:32
Messages: 13
Offline

I'd like to know how to get the name of a US city given some coordinates, and the URI for that request. And by city I don't mean neighborhood.

The confusion in my question may be that I was trying different approaches, neither of which I am proficient in.
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team