GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
administrative links problems  XML
Forum Index -> Administrative Divisions
Author Message
giampaolo



Joined: 16/07/2009 15:49:59
Messages: 1
Offline

Hi
I'm trying to link 2 administrative levels with a query for a town in italy but doesn't work.
Example: Treviso is a city in the Veneto Region and also a province.
So, I'd like to know how to link PPL-> treviso with AMIN2-> Province of Treviso.

How could I sort it out?
thanks
G.
[Email]
marc



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

Ciao Giampaolo

You find the link in the admincode2 field. The combination of countrycode, admincode1 and admincode2 defines the ADM2.

<adminCode1>20</adminCode1>
<adminName1>Veneto</adminName1>
<adminCode2>TV</adminCode2>
<adminName2>Provincia di Treviso</adminName2>
<adminCode3>026086</adminCode3>
<adminName3>Treviso</adminName3>

http://ws.geonames.org/search?q=treviso&maxRows=10&lang=es&style=full

Best

Marc

[WWW]
 
Forum Index -> Administrative Divisions
Go to:   
Powered by JForum 2.1.5 © JForum Team