qmnonic
Joined: 09/05/2008 16:00:54
Messages: 1
Offline
|
I'm having trouble finding the nearest city for a given latitude/longitude. I have tried a number of different queries, but can't seem to get it right. Here is an example...
Latitude: 40.7173387333125
Longitude: -73.9941215515137
Visually, this is in the heart of New York City. I'm looking for a query that returns the nearest CITY for a specific LAT/LONG.
http://ws.geonames.org/findNearbyPlaceName?lat=40.7173387333125&lng=-73.9941215515137
--- returns 'Allen Turnkey Housing'
Same query using the following fcode =
PPLX returns 'China Town'
PPLC returns nothing.
PPLA returns nothing.
PPL returns 'Allen Turnkey Housing'
PPLL returns 'Meat Packing District'
PPLS returns nothing.
Half the lat/longs within NYC return the city, half return something more specific (as noted above)... Is there a way to consistently return the nearest city? In the case above, it would always be NYC?
Thanks,
Matt.
|