<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "admin codes 3166-2 numeric vs. alpha"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "admin codes 3166-2 numeric vs. alpha"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>admin codes 3166-2 numeric vs. alpha</title>
				<description><![CDATA[ for switzerland this works as expected:

http://api.geonames.org/search?country=CH&username=DEMO&featureCode=ADM1&adminCode1=AG

just as wiki documents it: http://de.wikipedia.org/wiki/ISO_3166-2:CH

for germany (and other countries) however the wiki alpha codes don't work:

http://api.geonames.org/search?country=DE&username=DEMO&featureCode=ADM1&adminCode1=BW

see http://de.wikipedia.org/wiki/ISO_3166-2:DE

instead i must use numeric codes (01=BW) which are not documented on wiki.

the codes can be found by: http://api.geonames.org/search?country=DE&username=DEMO&featureCode=ADM1&style=FULL

&lt;adminCode1&gt;02&lt;/adminCode1&gt; 

1) why is that difference? 
2) how do i get to the geonameId or geoname adminCode1 when i have the wiki-documented alpha codes?

]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2491.page#9250</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2491.page#9250</link>
				<pubDate><![CDATA[Thu, 24 Feb 2011 16:44:58]]> GMT</pubDate>
				<author><![CDATA[ gonfi]]></author>
			</item>
			<item>
				<title>Re:admin codes 3166-2 numeric vs. alpha</title>
				<description><![CDATA[ so according to this http://forum.geonames.org/gforum/posts/list/1358.page it's not 3166-2 that geonames is using. 

is there a mapping?
]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2491.page#9252</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2491.page#9252</link>
				<pubDate><![CDATA[Thu, 24 Feb 2011 19:03:15]]> GMT</pubDate>
				<author><![CDATA[ gonfi]]></author>
			</item>
			<item>
				<title>Re:admin codes 3166-2 numeric vs. alpha</title>
				<description><![CDATA[ According to http://forum.geonames.org/gforum/posts/list/363.page you still use the FIPS codes sometimes, and planned to migrate to 3166-2. 

"woran wir noch arbeiten sind die ISO 3166-2 codes für so viele Länder wie möglich bevor wir wechseln. Es ist mir nicht bekannt, dass die opengeodb diese Daten enthält."

I don't mind using other codes ... as long as there is a web service for converting from one to the other :-)
]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2491.page#9253</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2491.page#9253</link>
				<pubDate><![CDATA[Thu, 24 Feb 2011 19:10:44]]> GMT</pubDate>
				<author><![CDATA[ gonfi]]></author>
			</item>
			<item>
				<title>Re:admin codes 3166-2 numeric vs. alpha</title>
				<description><![CDATA[ basically this kind of data as a webservice http://www.geonames.org/DE/administrative-division-germany.html 

of course i still don't know if the internal admin1 is the fips (for each country), but i could try and see if there is something.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2491.page#9254</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2491.page#9254</link>
				<pubDate><![CDATA[Thu, 24 Feb 2011 19:22:45]]> GMT</pubDate>
				<author><![CDATA[ gonfi]]></author>
			</item>
			<item>
				<title>Re:admin codes 3166-2 numeric vs. alpha</title>
				<description><![CDATA[ No, that would be sufficient, it includes the internal geonameId that's all i would need. So you do have there data that maps 3166-2 to geonameId. I just can't find the ws for it.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2491.page#9255</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2491.page#9255</link>
				<pubDate><![CDATA[Thu, 24 Feb 2011 19:24:11]]> GMT</pubDate>
				<author><![CDATA[ gonfi]]></author>
			</item>
			<item>
				<title>Re:admin codes 3166-2 numeric vs. alpha</title>
				<description><![CDATA[ I see you basically answered your own question. 

There a lot of different codes to describe admin division. Among the most popular are ISO and FIPS. Unfortunately there is no 1:1 relation between the different coding systems. GeoNames started with FIPS and has made some changes to keep up with political changes not yet reflected in FIPS or for other reasons.

At this time there is no service available to translate between the different coding systems. We have started mapping ISO, but other important codes like the European NUTS are missing completely.
I will put it on the todo list.

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2491.page#9262</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2491.page#9262</link>
				<pubDate><![CDATA[Fri, 25 Feb 2011 07:01:55]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
	</channel>
</rss>