<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Access to 3-digit ISO3166 country numbers"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Access to 3-digit ISO3166 country numbers"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Access to 3-digit ISO3166 country numbers</title>
				<description><![CDATA[ My system needs real time access to an up-to-date list of country names and ISO3166 3-digit country numbers. It could either access such a list in real time using (e.g.) a public web service, or it could download a complete file, say every day, and store it in a local database. I do <u>not</u> need masses of information - latitude and longitude, area, population, regions etc. etc. - just the 3-digit country numbers and the names for all countries in the world. The actual system needs to look up the number and find the name (not the other way round) so a web service would have to work like this.

What's the easiest, cheapest and best way of doing this? Can GeoNames do it?

Thanks - Rowan]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4074.page#12086</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4074.page#12086</link>
				<pubDate><![CDATA[Sun, 30 Dec 2012 07:26:11]]> GMT</pubDate>
				<author><![CDATA[ Rowan]]></author>
			</item>
			<item>
				<title>Re:Access to 3-digit ISO3166 country numbers</title>
				<description><![CDATA[ Dear Rowan,

the best way IMHO is downloading the file:
<a href='http://download.geonames.org/export/dump/countryInfo.txt' target='_new' rel="nofollow">http://download.geonames.org/export/dump/countryInfo.txt</a>

write a script/program in your favorite computer language and save the information you need in some kind of array, hash map, list ... etc.
so you can read from memory very fast each time.

There is no need for a web service or daily refresh because it is not common that a new country is introduced to the United Nations and get a new ISO Code. May be you can reload the list once or twice a year if your program needs an update anyway.

Happy new year.
Karaca
]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4074.page#12088</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4074.page#12088</link>
				<pubDate><![CDATA[Wed, 2 Jan 2013 09:31:14]]> GMT</pubDate>
				<author><![CDATA[ Karaca]]></author>
			</item>
	</channel>
</rss>