<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "getting parent location"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "getting parent location"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>getting parent location</title>
				<description><![CDATA[ first, thanks for such a great service! Badly needed and very much appreciated, thanks guys.

One thing I'd like to be able to to do is given a geonamesid for a location, look up it's parent locations to form a hierarchy. So if you have the id for a district of a town, you'd then be able to get the town itself, followed by the state, followed by the country.

is anything like this possible?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#237</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#237</link>
				<pubDate><![CDATA[Sat, 10 Jun 2006 16:28:39]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>getting parent location</title>
				<description><![CDATA[ <p></p>

		<cite>Anonymous wrote:</cite><br>
		<blockquote>... you'd then be able to get the town itself, followed by the state, followed by the country.....&nbsp;
		</blockquote>Cool idea, I second that!]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#238</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#238</link>
				<pubDate><![CDATA[Sat, 10 Jun 2006 16:39:16]]> GMT</pubDate>
				<author><![CDATA[ noiv]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ I think we should be able to roll out a prototype with country and first order subdivision pretty soon. For more levels of the hierarchy we currently don't have enough information ready. For many countries it should be possible to derive it from other datasets. (US and Europe) For many other countries it will be difficult to get the necessary information.

Would you be interested in a prototype returning the country and the first subdivision (state/province)? 

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#239</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#239</link>
				<pubDate><![CDATA[Sun, 11 Jun 2006 17:18:33]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ hi marc

country and first subdivision would be brilliant. In fact, I'd say it would fit the requirements of most users. It's enough to differnetiate between ambiguous place names but not so much that it would cause an information overload for users.

thanks for your help

rick]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#240</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#240</link>
				<pubDate><![CDATA[Sun, 11 Jun 2006 19:52:30]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ Hi Rick

A first prototype for a hierarchy service is ready. Any comment is welcome.

Example :
http://ws.geonames.org/hierarchy?geonameId=1

It returns country, first subdivision and the geoname record itself. In this order. 
Only about a third of all subdivisions are already mapped to their geoname id. If you can tell us which countries are important to you, I have a look at them and make sure these are mapped to their geonameId.

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#245</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#245</link>
				<pubDate><![CDATA[Tue, 13 Jun 2006 17:43:12]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ <p></p>

		<cite>marc wrote:</cite><br>
		<blockquote>... A first prototype for a hierarchy service is ready. .... &nbsp;
		</blockquote> Wow, all tested IDs returned correct data. 
Can I help to make the relation country -> contintent?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#246</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#246</link>
				<pubDate><![CDATA[Tue, 13 Jun 2006 23:17:01]]> GMT</pubDate>
				<author><![CDATA[ noiv]]></author>
			</item>
			<item>
				<title>getting parent location</title>
				<description><![CDATA[ Thanks for this service, and want to mark, that needed also dump of this table with relations between countries, regions and cities.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#260</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#260</link>
				<pubDate><![CDATA[Fri, 16 Jun 2006 11:28:14]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ Dear All,
I want to integrate the geonames website into my website.
but i havn't no idea for the basic step.
Please tell me the initial step to integrate the site with my own site.
Please help me to do that.
Thanks and regards,
Magesh.
 ]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#261</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#261</link>
				<pubDate><![CDATA[Fri, 16 Jun 2006 12:50:04]]> GMT</pubDate>
				<author><![CDATA[ magesh]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ Marc

it works great. thanks for taking the time to do this. For me, the priority countries are all the english speaking ones, US, UK, Canada, Australia  etc

magesh, which platform/language are you using on your site? PHP, ASP, Java or something else? You need to select the relevant web service from this page :

http://www.geonames.org/export/

and then use your platform or language to query the web service and process the resulting XML data

hth
alex]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#263</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#263</link>
				<pubDate><![CDATA[Fri, 16 Jun 2006 14:32:11]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ The hierarchy web service now returns the continent in the first position of the result. Example :

http://ws.geonames.org/hierarchy?geonameId=1

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#296</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#296</link>
				<pubDate><![CDATA[Mon, 26 Jun 2006 20:20:20]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>getting parent location</title>
				<description><![CDATA[ As this is still undocumented, I just wanted to confirm that its OK to use this hierarchy webservice? As I have a really cool idea for a use of it!]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#835</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#835</link>
				<pubDate><![CDATA[Wed, 13 Sep 2006 18:16:56]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ Yes you can use the service.  You can drop me an email (marc@geonames.org) so we can discuss it with you in case we would like to change something before officially releasing the service.

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#836</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#836</link>
				<pubDate><![CDATA[Wed, 13 Sep 2006 20:02:38]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>getting parent location</title>
				<description><![CDATA[ Sorry that was me again, forgot I wasn't logged in... (found by refreshing the page eventually got a nice b/w captcha could read :)

I'm just about to try a using the service in a bit of testing, we see how get on, and will contact you before using it properly. ]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#837</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#837</link>
				<pubDate><![CDATA[Wed, 13 Sep 2006 21:28:58]]> GMT</pubDate>
				<author><![CDATA[ barryhunter]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ Wow, service is now more responsive and answer leaner.   :) ]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#841</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#841</link>
				<pubDate><![CDATA[Fri, 15 Sep 2006 15:42:01]]> GMT</pubDate>
				<author><![CDATA[ noiv]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ The service is now taking the <i>style</i> parameter (SHORT,MEDIUM,LONG,FULL) just like the other services.

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#842</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#842</link>
				<pubDate><![CDATA[Fri, 15 Sep 2006 15:44:44]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ <p></p>

		<cite>marc wrote:</cite><br>
		<blockquote>The service is now taking the <i>style</i> parameter (SHORT,MEDIUM,LONG,FULL) just like the other services.
&nbsp;
		</blockquote>

Great! Updated my utility to use it, depending on user options :)

Hey while here will add a quick plug  :D 

http://www.nearby.org.uk/group-kml.php

<blockquote>… Takes a kml [Google Earth] file full of placemarks, and organizes them into a folder tree structure, starting by continent and working down though country to state/county if possible…&nbsp;
		</blockquote>]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#843</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#843</link>
				<pubDate><![CDATA[Fri, 15 Sep 2006 16:06:16]]> GMT</pubDate>
				<author><![CDATA[ barryhunter]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ The heirarchy web service is cool!  Are you dynamically determining the parentage with each query, or have you precomputed them for each location?  If its the latter case, is the master list of the heirarchy for each location available for download?  I guess I could obtain it by repeatedly querying the webservice, but a directly download seems friendlier :)

Also, how difficult would it be to add additional "administrative region" layers?  For instance, for locations within the US it would be useful for me to know the City/County.  Sort of along those lines, it seems like this information could be obtained from vector boundary info for administrative regions.  I've been looking around for such info but haven't been found it.  Has anyone else come across it?

Thanks,
Aaron]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#853</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#853</link>
				<pubDate><![CDATA[Mon, 18 Sep 2006 22:52:32]]> GMT</pubDate>
				<author><![CDATA[ agussman]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ Hi Aaron

The information is already in the download. Look at the field admin1. (admin2 is still missing in the download)

There is also a reverse geocoding service for administrative division :
http://ws.geonames.org/countrySubdivision?lat=47.03&lng=10.2&type=xml

Regards

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#874</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#874</link>
				<pubDate><![CDATA[Thu, 21 Sep 2006 18:48:02]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ Hi Marc,
I think this is a very usefull service, but just 2 questions:
- why the hierarchical service for Italy doesn't return admin1 and admin2 in another geoname tag, so I need to ask the subvidision service to do that?
- why in Italy node <adminName1>Umbria</adminName1>  ? :shock: 

thanks Fabrizio]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#1826</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#1826</link>
				<pubDate><![CDATA[Sat, 7 Apr 2007 10:26:01]]> GMT</pubDate>
				<author><![CDATA[ mcjennis]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ Hi Fabrizio

1. admin1 should be there for nearly all entries. admin2 has just been added for adm2 and ppl features.

2. the wrong admin1 code for the toponym "Italy" has been deleted.

Cheers

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#1846</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#1846</link>
				<pubDate><![CDATA[Mon, 9 Apr 2007 20:00:51]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ Hello,

I have a similar question / problem that I hope you can help me with:

I have downloaded the CA.zip file to study the data and see if Geonames has what I need, and I can't figure out if this releationship exists in the data (for example):

Canada --> British Columbia --> Vancouver Island --> Victoria

I'm looking for a heirarchy of Country --> Province --> Sub Region/Territory (for lack of a better term) --> City

I can make the releationship work for Country, Province and City, but adding in the extra layer is the trick I need.

The data records for this example are:

5909050	British Columbia
6173336	Vancouver Island
6174041	Victoria

This is just one example, and with all the global data available, I'm hoping this could be a feature for any ADM1 and Populated Place (if I properly understood the relationship)?

I'm not after a webservice, just need an understanding of the data relationship and I can write the query to make it work.

If this is not possible, where can I turn to find what I'm after?

Thank you very much for the help!

Cheers.

Michael.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#2319</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#2319</link>
				<pubDate><![CDATA[Sat, 30 Jun 2007 02:54:54]]> GMT</pubDate>
				<author><![CDATA[ tk147]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ I don't see any documentation on this service anywhere on the site. Has it been "officially released"?

I plan on using this service for my project and was lucky to stumble upon it in the forums. I think it would help others if there was documentation about it on the main site.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#2325</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#2325</link>
				<pubDate><![CDATA[Tue, 3 Jul 2007 01:45:57]]> GMT</pubDate>
				<author><![CDATA[ eyeRmonkey]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ I have a question about the consistency of results from this service.

Will the second result always be something that is considered a "country"?

Take Puerto Rico for example: http://ws.geonames.org/hierarchy?geonameId=4566967&style=full

It is considered an island by geonames, but for all intents and purposes, it is it's own country.

I need to know if I can safely assume that the second result is always a country.

Thanks.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#2326</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#2326</link>
				<pubDate><![CDATA[Tue, 3 Jul 2007 03:16:58]]> GMT</pubDate>
				<author><![CDATA[ eyeRmonkey]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ One more question about the structure of results returned by hierarchy.

Will there ever be something two levels below ADM1 in the hierarchy.

Here is how I understand the structure:

1) Continent
2) Country
3) ADM1
4) ADM2 (sometimes non-existent)
5) populated place/building/structure/etc.
6) ???? Does anything ever exist here?

Thanks again!]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#2327</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#2327</link>
				<pubDate><![CDATA[Tue, 3 Jul 2007 04:18:08]]> GMT</pubDate>
				<author><![CDATA[ eyeRmonkey]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ I think through some research, I answered my last question. The answer seems to be "no", but I'm not sure why.

Here is something that should be in #6 of my previous post:
http://ws.geonames.org/hierarchy?geonameId=5744256&style=full

It jumps straight from ADM2 down to a specific building, but I think a populated place should be between those two. Here is how I found the proper populated place:
http://ws.geonames.org/findNearbyPlaceName?lat=45.3567875&lng=-122.5962024

I have coded around this in my application, but I think it makes sense to have it actually be part of the service.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#2328</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#2328</link>
				<pubDate><![CDATA[Tue, 3 Jul 2007 07:17:42]]> GMT</pubDate>
				<author><![CDATA[ eyeRmonkey]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ Hi tk147

For Canada we have the province level information (British Columbia) in column 'admin1code'. The information for lower levels is not yet included in the database.


eyeRmonkey  :

I have updated the feature code for Puerto Rico to 'dependent political entity' it will soon show as second result item.

The information is not yet as complete for low level information like suburbs and neighbourhoods. See also this discussion about New York :
http://forum.geonames.org/gforum/posts/list/487.page

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#2341</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#2341</link>
				<pubDate><![CDATA[Wed, 4 Jul 2007 20:23:27]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
			<item>
				<title>Re:getting parent location</title>
				<description><![CDATA[ Thanks Marc!

That makes sense. Hopefully that information will become more complete in time.

How about some documentation for hierarchy on the main website so others can enjoy it's greatness?

Thanks a ton for the work you're doing here. It's extremely helpful. The hierarchy service was exactly what I needed for my project. The geonames project is fantastic!]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/82.page#2342</guid>
				<link>http://forum.geonames.org/gforum/posts/list/82.page#2342</link>
				<pubDate><![CDATA[Wed, 4 Jul 2007 20:44:17]]> GMT</pubDate>
				<author><![CDATA[ eyeRmonkey]]></author>
			</item>
	</channel>
</rss>