| Author |
Message |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 02/01/2009 21:40:34
|
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?
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 03/01/2009 17:14:55
|
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
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 03/01/2009 22:10:51
|
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.
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 10/01/2009 19:20:22
|
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
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 10/01/2009 20:32:15
|
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.
|
|
|
 |
|
|