GeoNames Home
|
Postal Codes
|
Download / Webservice
|
About
GeoNames Forum
Search
Recent Topics
Back to home page
Register
/
Login
administrative links problems
Forum Index
->
Administrative Divisions
Author
Message
16/07/2009 15:55:24
Subject:
administrative links problems
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.
17/07/2009 07:57:37
Subject:
Re:administrative links problems
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
Forum Index
->
Administrative Divisions
Go to:
Select a forum
Forum in English
-------------
General
Administrative Divisions
FAQ - frequently asked questions
Postal Codes
Discussion of GeoNames Toponyms
Forum in other language
-------------
Forum in Deutsch
Powered by
JForum 2.1.5
©
JForum Team
info@geonames.org
GeoNames Home
Postal Codes
Download / Webservice
Forum
About