<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "how get a simple list of cities inside a US State with the dump files?"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "how get a simple list of cities inside a US State with the dump files?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>how get a simple list of cities inside a US State with the dump files?</title>
				<description><![CDATA[ hi everyone!

i have imported the allCountries.txt. My website will have a form to enter the address of the user worldwide.

<b>get the full list of Countries:</b>
select * from allCountries where feature_code = 'PCLI'

<b>get the full list of states/provinces inside a country, for example USA:</b>
select * from allCountries where feature_code = 'ADM1' and country_code = 'US'
<font color='red'>i have tested this query for Canada and USA. Don't know if it will always work for the other countries</font>

<b>get the full list of cities inside a state/province, for example New York / USA</b>
select * from allCountries where feature_code = 'PPL' and country_code = 'US' and admin1code = 'NY'
<font color='red'>this is where i don't know where to get only the cities inside a state. I get too much elements with that query.</font>

i get Abbotts, Abell Corners, Abenaki Mobile Home Park, etc... but if i compare it to the officiel list from Wikipedia http://en.wikipedia.org/wiki/List_of_cities_in_New_York, these cities doesnt exist. Also, i'm supposed to see Albany, Auburn but i dont get them with the query.

So my question is, how can i select only the real official cities?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4144.page#12273</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4144.page#12273</link>
				<pubDate><![CDATA[Thu, 7 Mar 2013 06:48:56]]> GMT</pubDate>
				<author><![CDATA[ skoub]]></author>
			</item>
			<item>
				<title>Re:how get a simple list of cities inside a US State with the dump files?</title>
				<description><![CDATA[ With the restriction to PPL you miss all seats of administrative divisions.

GeoNames is a global gazetteer. If you need very specific type of features that only exist in one country then you will need to look for a country specific source. 

Best Regards

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4144.page#12284</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4144.page#12284</link>
				<pubDate><![CDATA[Fri, 8 Mar 2013 15:45:15]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>how get a simple list of cities inside a US State with the dump files?</title>
				<description><![CDATA[ Maybe i just don't understand all the structure of the data with the PPL thing yet :)

So there's no way i can just grab the official cities of an admin division?

If we have admin1 = state, should we have admin2 = cities?

Alex]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4144.page#12287</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4144.page#12287</link>
				<pubDate><![CDATA[Fri, 8 Mar 2013 22:07:14]]> GMT</pubDate>
				<author><![CDATA[ skoub]]></author>
			</item>
			<item>
				<title>Re:how get a simple list of cities inside a US State with the dump files?</title>
				<description><![CDATA[ admin2 are counties in the US.

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4144.page#12364</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4144.page#12364</link>
				<pubDate><![CDATA[Sun, 28 Apr 2013 07:52:07]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
	</channel>
</rss>