GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Problem with CountrySubdivision webservice  XML
Forum Index -> General
Author Message
ludaw



Joined: 20/08/2009 11:27:24
Messages: 105
Offline

Hello,

there are several problems with the CountrySubdivision ws

* it sometimes returns ADMD instead of ADM1.
Ex: Skovde Flygplats (id 6296792, 58.4564 / 13.97267)
http://api.geonames.org/countrySubdivision?lat=58.4564&lng=13.97267&maxRows=10&radius=40&username=demo
The ws returns: Skaraborg (2678206, ADMD) instead of Västra Götaland.


* Answers in XML and JSON may differ:
http://api.geonames.org/countrySubdivision?lat=47&lng=11.5&maxRows=10&radius=10&username=demo
http://api.geonames.org/countrySubdivisionJSON?lat=47&lng=11.5&radius=10&maxRows=10&username=demo


* results differ whether the maxRows parameter is present or not:
http://api.geonames.org/countrySubdivision?lat=51.01667&lng=-57.1&radius=10&username=demo
http://api.geonames.org/countrySubdivision?lat=51.01667&lng=-57.1&maxRows=10&radius=10&username=demo


* and results would be easier to handle if the ws returned the ADM1 id instead of its name in full letters...

Regards
ludaw



Joined: 20/08/2009 11:27:24
Messages: 105
Offline

no answer?
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

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

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team