<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "How to link postalcode db with admincode1 and admincode2?"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/7.page</link>
		<description><![CDATA[Latest messages posted in the topic "How to link postalcode db with admincode1 and admincode2?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>How to link postalcode db with admincode1 and admincode2?</title>
				<description><![CDATA[ Hi,
In first thanks for the nice job on geonames.
I'discover geonames, i've downloaded
allCountries with postalcode, amin1code and admincodes2

How can i from postal database get admin1code or admincodes2?

SELECT * FROM admin1codes a where code LIKE'BE.%';
'BE.WA', 'Wallonia'

SELECT country,postal_code,admin_code1,admin_code2 FROM countryzipcode  where country='BE';
'BE', '5590', 'BEWAL', ''

Then this is not the same key for admin_code ! 'BE.WA'!='BEWAL'.

What is the best way to get the admin_code1 from admincode1 database from the admin_code1 from postal_code database?

Thanks for your help.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1465.page#6126</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1465.page#6126</link>
				<pubDate><![CDATA[Sat, 18 Jul 2009 16:12:25]]> GMT</pubDate>
				<author><![CDATA[ lorizon]]></author>
			</item>
			<item>
				<title>Is it could help you if for postalcode db I give the update sql to map on admincode1 admincode2?</title>
				<description><![CDATA[ Hi,
Is it could help you if for postalcode db I give the update sql to change on admincode1 admincode2 in postalcodeDB?
postalcodeDB.admin_code1&lt;-&gt;admincodes1DB.code

postalcodeDB.admin_code1=&quot;Country.XX&quot; (from admincode1DB)
postalcodeDB.admin_code2=&quot;Country.XX.YYYY&quot; (from admincode2DB)

Maybe someone always working on this?

]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1465.page#6127</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1465.page#6127</link>
				<pubDate><![CDATA[Sun, 19 Jul 2009 14:39:20]]> GMT</pubDate>
				<author><![CDATA[ lorizon]]></author>
			</item>
			<item>
				<title>Re:How to link postalcode db with admincode1 and admincode2?</title>
				<description><![CDATA[ the toponym database and the postalcode database are not yet normalized and are not using the same admin codes for all countries. For some countries they do, for other not. If you have scripts for some country it would be nice to post it for others with the same wish.

Best

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1465.page#6128</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1465.page#6128</link>
				<pubDate><![CDATA[Sun, 19 Jul 2009 22:58:46]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:How to link postalcode db with admincode1 and admincode2?</title>
				<description><![CDATA[ I'm started to update postal zip database for admin 1& admin2
Where can i found the normalized codes? admin1 database? geonames database?
And for admin2? geonames?
Thanks]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1465.page#6150</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1465.page#6150</link>
				<pubDate><![CDATA[Sun, 26 Jul 2009 09:44:45]]> GMT</pubDate>
				<author><![CDATA[ lorizon]]></author>
			</item>
			<item>
				<title>Re:How to link postalcode db with admincode1 and admincode2?</title>
				<description><![CDATA[ There are many codes to choose from. One of the challenges is to figure out which code in which country makes sense and is applicable. Some countries for instance have reorganizations of admin divisions and it will also depend on which year the codes are from.

Best

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1465.page#6158</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1465.page#6158</link>
				<pubDate><![CDATA[Thu, 30 Jul 2009 22:47:49]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Wallonie, API and adminCode1 (WAL/BEWAL)</title>
				<description><![CDATA[ UP ^^

I attempted :
http://ws.geonames.org/get?geonameId=2802845
<adminCode1>WAL</adminCode1>
<adminName1>Wallonia</adminName1>

Then :
http://ws.geonames.org/postalCodeSearch?country=BE&postalcode_startsWith=4400
<adminCode1>BEWAL</adminCode1>
<adminName1/>
[notice: no more adminName1]

While :
http://geotree.geonames.org/2802845/
[the hierarchy shows up correctly]

any advices ?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1465.page#7928</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1465.page#7928</link>
				<pubDate><![CDATA[Thu, 17 Jun 2010 19:04:27]]> GMT</pubDate>
				<author><![CDATA[ drzraf]]></author>
			</item>
	</channel>
</rss>