<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Problem with CountrySubdivision webservice"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Problem with CountrySubdivision webservice"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Problem with CountrySubdivision webservice</title>
				<description><![CDATA[ Hello,

there are several problems with the CountrySubdivision ws 

* <u>it sometimes returns ADMD instead of ADM1.</u>
Ex: Skovde Flygplats (id 6296792, 58.4564 / 13.97267)
<a href='http://api.geonames.org/countrySubdivision?lat=58.4564&lng=13.97267&maxRows=10&radius=40&username=demo' target='_new' rel="nofollow">http://api.geonames.org/countrySubdivision?lat=58.4564&lng=13.97267&maxRows=10&radius=40&username=demo</a>
The ws returns: Skaraborg (2678206, ADMD) instead of Västra Götaland.


* <u>Answers in XML and JSON may differ:</u>
<a href='http://api.geonames.org/countrySubdivision?lat=47&lng=11.5&maxRows=10&radius=10&username=demo' target='_new' rel="nofollow">http://api.geonames.org/countrySubdivision?lat=47&lng=11.5&maxRows=10&radius=10&username=demo</a>
<a href='http://api.geonames.org/countrySubdivisionJSON?lat=47&lng=11.5&radius=10&maxRows=10&username=demo' target='_new' rel="nofollow">http://api.geonames.org/countrySubdivisionJSON?lat=47&lng=11.5&radius=10&maxRows=10&username=demo</a>


* <u>results differ whether the maxRows parameter is present or not:</u>
<a href='http://api.geonames.org/countrySubdivision?lat=51.01667&lng=-57.1&radius=10&username=demo' target='_new' rel="nofollow">http://api.geonames.org/countrySubdivision?lat=51.01667&lng=-57.1&radius=10&username=demo</a>
<a href='http://api.geonames.org/countrySubdivision?lat=51.01667&lng=-57.1&maxRows=10&radius=10&username=demo' target='_new' rel="nofollow">http://api.geonames.org/countrySubdivision?lat=51.01667&lng=-57.1&maxRows=10&radius=10&username=demo</a>


* and results would be easier to handle if the ws returned the ADM1 id instead of its name in full letters...

Regards]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2700.page#9720</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2700.page#9720</link>
				<pubDate><![CDATA[Wed, 18 May 2011 22:54:27]]> GMT</pubDate>
				<author><![CDATA[ ludaw]]></author>
			</item>
			<item>
				<title>Re:Problem with CountrySubdivision webservice</title>
				<description><![CDATA[ no answer?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2700.page#9774</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2700.page#9774</link>
				<pubDate><![CDATA[Wed, 1 Jun 2011 15:15:18]]> GMT</pubDate>
				<author><![CDATA[ ludaw]]></author>
			</item>
			<item>
				<title>Re:Problem with CountrySubdivision webservice</title>
				<description><![CDATA[ 1) the service can only be as good as the underlying data. For Västra Götaland the boundary information is missing the service therefore returns the old ADM2 information. The alternative would be to not return anything.

2) For historical reasons the xml service elements were contained in a parent element, it is therefore possible to return a list of subdivisions. For the json service it is not possible to return a list without changing the result document and thus breaking existing applications. 

3) The point is outside of the boundary and there are several algorithms trying to find something. With different parameters the result sometimes might be different. The alternative would again be to use only one algorithm and not return anything if nothing is found with the first approach.

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2700.page#9780</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2700.page#9780</link>
				<pubDate><![CDATA[Fri, 3 Jun 2011 21:14:25]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
	</channel>
</rss>