GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
States of Country in java code  XML
Forum Index -> General
Author Message
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
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

[WWW]
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
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

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