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 cityname with region name  XML
Forum Index -> General
Author Message

Joined: 08/05/2019 16:55:02
Messages: 2

Hello to all !
Thanks a lot for all cities databases.
I just have one difficulties....
I want to get the same as this link :

It's the cities in Cameroon but i want the same for other country...

So i need the city name with the region name : Here some example :
Montréal, Québec
Paris, Ile-de-France,
Los Angeles, California...

so : city name, region name.

Is it possible to get that ? I can't figure how to do this !!!

Thanks a lot, and have a great day !


Joined: 08/12/2005 07:39:47
Messages: 4222

the admin division is encoded in the admincode1 column. You need to find the feature with the same country code and admincode1 and featurecode=ADM1.
The you find the name in the desired language in the alternatenames file.



Joined: 08/05/2019 16:55:02
Messages: 2

Hello Marc !

That's perfect! I really appreciate !
Do you have an example of a query that i can use to get it ?

Have a great day !
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team