| Author |
Message |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 17/10/2012 06:50:04
|
Barbara
Joined: 15/10/2012 21:50:42
Messages: 2
Offline
|
Hi,
My problem is that I need you find the country, state and city, given the geographic coordinates. However I can only find the country and the city .
Does anyone happen to know how to find the respective states of the country, given the geographical coordinates in java code?
Thank you
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 28/10/2012 11:21:48
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
the countrysubdiv service returns admin divisions:
http://www.geonames.org/export/web-services.html#countrysubdiv
Otherwise you can look at the admin1Code of the features you get from the nearbyPlacename service, although the field is not always set.
Marc
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 01/11/2012 07:55:02
|
Barbara
Joined: 15/10/2012 21:50:42
Messages: 2
Offline
|
Thank you for your help Marc, I managed to locate the states.
But now I have another problem, only some are returned within city search, and I need to be returned any city in search.
Does anyone know inform me if can locate the GeoNames ID and find all the cities, especially from Brazil, or some other method...
Thanks
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 11/11/2012 22:20:14
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
If you want all cities from Brazil then you can use the data base extract.
Marc
|
 |
|
|
 |
|
|