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 to get correct city names  XML
Forum Index -> General
Author Message
wudu



Joined: 14/01/2013 10:56:26
Messages: 1
Offline

Hi !

Is there a way to get the CITY name to the corresponding lat/lng?

Because using findNearby (f.e:
http://api.geonames.org/findNearby?lat=48.251884&lng=14.313422&featureClass=P&style=FULL&username=demo )

returns "Wagram" (district) instead of "Pasching" (city)

Using findNearbyPostalCodes returns the correct postal code (4061) with the wrong name of the city (district again):

http://api.geonames.org/findNearbyPostalCodes?lat=48.24321&lng=14.235683&featureClass=A&featureClass=P&style=FULL&max_rows=10&username=demo&lang=en

Using findNearbyPostalCodes with postalcode and country_code returns the correct city/state/country name, but only in German, not in english, because the lang parameter does not work with this call.

http://api.geonames.org/findNearbyPostalCodes?postalcode=4061&country_code=AT&username=demo&lang=en&maxRows=1&style=FULL

So is there a way to get the country/state/city names / postal code in english from using lat/long, without getting districts.

for f.e. lat=48.24321&lng=14.235683 I would like to get:
"Austria" / "Upper Austria" / "Pasching" / 4061

Any ideas?

Greetings
Wudu
mstaer



Joined: 08/03/2013 04:42:06
Messages: 1
Offline

I was wondering this too. Right now, I am forced to use another service to get the correct name.

For example, I want my app to find the user's city as Melbourne, not as Albert Park or Middle Park or South Melbourne.

I can do a search for Melbourne and get all relevant data, but when sending lat/long to Geonames, it's almost too specific, returning, as you say, the district, when I want the "simple/general" city name. No one says, "I am from Albert Park" they say "I am from Melbourne".

This will be key for my app. I'd rather not have to use two services...
irose



Joined: 20/11/2013 15:45:46
Messages: 2
Offline

Any resolution or workaround for this? I'm having the same issue...
blackmad



Joined: 05/09/2012 17:29:06
Messages: 14
Offline

Melbourne (and the other major cities of australia) are actually a problem because there isn't a "melbourne city" that exists in the government administrative hierarchy. There are various definitions of a colloquail Melbourne that includes number local government areas, including the small central business district officially known as Melbourne.
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team