GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
United States state names in admin1Codes.txt  XML
Forum Index -> General
Author Message
Carey Gister



Joined: 15/05/2007 02:02:33
Messages: 23
Offline

Marc,

I note that 25 of the 50 US state names are encoded as "State of X" and the other 25 are encoded as simply "X".

Can we use a consistent format of "X" for the state name?

Although "State of X" is more formal, most United States citizens are accustomed to simply "X" as the name of their state.

Let me know what you think.

Carey
[Yahoo!]
marc



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

Carey

You are absolutely right, we need to fix this. I will take care of it.

Regards

Marc

[WWW]
marc



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

Hi Carey

The codes for the US in the adminCodes1 files look now ok.

Marc

[WWW]
dbaerwaldt



Joined: 10/07/2009 19:22:17
Messages: 4
Offline

Can anyone show me how to get the states or provinces for any given country?

I can get all the countries but seem to be unable to get the states (ie. states in the USA)

Help
marc



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

the states have the feature code ADM1 in the download files.


Marc

PS: it is not necessary to post the same question twice.

[WWW]
dbaerwaldt



Joined: 10/07/2009 19:22:17
Messages: 4
Offline

Thanks for the hint about posting! Can you please provide an example on how to obtain the states/provinces for any given country via web service? I'm sure that many will appreciate that. I've been searching for hours on just how to do that with no success.

DB
marc



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

There are at least two approaches.

The first is to use the hierarchy services and get the children of the US:
http://ws.geonames.org/children?geonameId=6252001

another approach is to use the search service and get all ADM1 for the US:
http://ws.geonames.org/search?&maxRows=100&featureCode=ADM1&country=US

Best

Marc

[WWW]
dbaerwaldt



Joined: 10/07/2009 19:22:17
Messages: 4
Offline

You provided the answer and the solution...

THANK YOU SO MUCH!!
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team