| Author |
Message |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 22/03/2011 07:30:28
|
greggirwin
Joined: 21/03/2011 18:42:08
Messages: 5
Offline
|
I'm working with a client, using geonames free service for proof of concept, and they found an error in the data (which makes them justifiably question whether there might be more).
We are using reverse geocoding and extracting the state and county names.
This is correct:
39.93938969 -101.78646033
== ["Kansas" "Cheyenne"]
This is not:
39.93938969 -101.78646033
== ["Nebraska" "Dundy County"]
The second result should be St. Francis Kansas (according to them and Google Maps).
If Premium has more complete and accurate data, I think it will convince them to use it; otherwise, when we find suspected bad data, what is the best way to submit suggested changes?
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 22/03/2011 07:40:43
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
The data for the premium service is normally the same.
The country subdivision services returns "Cheyenne County" for the second location:
http://api.geonames.org/countrySubdivision?lat=39.93938969&lng=-101.78646033%20&username=demo&style=full&level=2
I don't know which reverse geocoding service you are using. For US counties the countrySubdivision is the most appropriate service.
Best
Marc
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 22/03/2011 10:07:21
|
greggirwin
Joined: 21/03/2011 18:42:08
Messages: 5
Offline
|
Thanks Marc, I'm using extendedFindNearby, but will look into countrySubdivision.
Much appreciated.
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 22/03/2011 10:16:01
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
The findNearby services return the closest record, this might be in a different admin division or even country then the lat/lng you have used. If you query for instance for nearby city in Canada near the US border the closest city might be in the US. This is not necessarily an 'incorrect data' problem.
Marc
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 22/03/2011 10:19:33
|
greggirwin
Joined: 21/03/2011 18:42:08
Messages: 5
Offline
|
Thanks for the excellent clarification, and forgiving my newbieness.
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 23/03/2011 03:47:34
|
greggirwin
Joined: 21/03/2011 18:42:08
Messages: 5
Offline
|
Is the 'level argument described anywhere, for reference purposes?
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 24/03/2011 07:45:34
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
you are right, is was an undocumented feature.
I have put a list of the supported countries here:
http://www.geonames.org/export/subdiv-level.html
It lists the supported countries and the max level per country.
Marc
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 24/03/2011 16:18:56
|
greggirwin
Joined: 21/03/2011 18:42:08
Messages: 5
Offline
|
Thanks so much!
|
|
|
 |
|
|