<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Retrieve all state or province codes for a country"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Retrieve all state or province codes for a country"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Retrieve all state or province codes for a country</title>
				<description><![CDATA[ I am working on integrating the web services into our application. So far pretty good. I have 1 question tho:
I am using this service like:

http://api.geonames.org/search?country=US&featureCode=ADM1&style=SHORT&username=<xxxx>

but would like to get the state code(abbreviation) returned. I see the code in the admin1_code (and the alternatename “abbr”) field in the db. The need is to have the states/provinces/etc for the country. So for the US, I would have all 50 states+.

If I use the web service like this:

http://api.geonames.org/search?country=US&featureCode=ADM1&style=FULL&username=<xxx>

I get the abbreviation, but that is far too big a payload to process.

Is there something I am missing or a parameter or a different service to call?

Any assistance would be appreciated.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/3734.page#11141</guid>
				<link>http://forum.geonames.org/gforum/posts/list/3734.page#11141</link>
				<pubDate><![CDATA[Wed, 18 Jan 2012 15:11:28]]> GMT</pubDate>
				<author><![CDATA[ lifebio]]></author>
			</item>
			<item>
				<title>Re:Retrieve all state or province codes for a country</title>
				<description><![CDATA[ 
you can set the desired out put language to the pseudo-language 'abbr'.

http://api.geonames.org/search?country=US&featureCode=ADM1&style1=SHORT&username=xxx&lang=abbr

Best Regards

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/3734.page#11146</guid>
				<link>http://forum.geonames.org/gforum/posts/list/3734.page#11146</link>
				<pubDate><![CDATA[Sat, 21 Jan 2012 07:50:42]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
	</channel>
</rss>