ISO 3166-2

333 views
Skip to first unread message

Sjors

unread,
Jan 28, 2008, 8:42:13 AM1/28/08
to GeoNames
Hi there,

I've seen some mention of a plan to use the ISO 3166-2 country
subdivision codes. That would make me quite happy, because I have a
database of about 150.000 coordinates (bird rings) that I need to
check against the country subdivisions.

Can anyone give me an estimate when this feature will / might be
implemented?

Cheers,

Sjors

Marc Wick

unread,
Jan 28, 2008, 11:08:29 AM1/28/08
to geon...@googlegroups.com
Hi Sjors

It is still in the making, we have around 70 countries ready where we
have identified the ISO codes for the existing fips codes. What we could
do is publish what we have. For web services we could return fips and
iso codes for those countries where we know them. Are you speaking of
the country subdivision web service?
What we are also considering is to add what we have as additional two
columns (iso,fips) to the admin1Codes dump file.

Cheers

Marc

Sjors

unread,
Jan 29, 2008, 4:41:37 AM1/29/08
to GeoNames
On Jan 28, 5:08 pm, Marc Wick <m...@geonames.org> wrote:
> Hi Sjors
>
> It is still in the making, we have around 70 countries ready where we
> have identified the ISO codes for the existing fips codes. What we could
> do is publish what we have. For web services we could return fips and
> iso codes for those countries where we know them. Are you speaking of
> the country subdivision web service?
> What we are also considering is to add what we have as additional two
> columns (iso,fips) to the admin1Codes dump file.

Hi Marc,

Thanks for your reply.

I am using the Geonames Ruby API [1] to query
"WebService.country_subdivision (lat, lon)".

Do you have the list of those 30 countries? It would be great if you
already publish what you have. In total I have about 50 countries, but
the countries I am most interested in are:
* Netherlands (although I can work around it)
* France
* Great Britain
* Russia
* Denmark
* Germany
* Finland
* Belgium
* Ireland
* Sweden
* Italy
* Czech Republic
* Estonia
* Poland

Cheers,

Sjors

1) http://www.tbcn.ca/ruby_geonames

Marc Wick

unread,
Jan 30, 2008, 1:38:53 PM1/30/08
to geon...@googlegroups.com
Sjors

I have listed the 76 countries below for which we have a relation
between FIPS and ISO codes.
ISO and FIPS are not the only codes, the EU is using NUTS codes and each
country is having their own codes. From this perspective it would be
best to add a generic element 'code' with an attribute 'type' that
designates the code encoded in the element :
<code type="ISO3166-2">NH</code>
<code type="FIPS10-4">07</code>

Any comments?

Regards

Marc


AD
AO
AR
AT
AU
BB
BE
BG
BI
BJ
BN
BO
BR
BW
CA
CD
CG
CH
CN
CR
CU
CY
CZ
DE
DJ
EC
ES
FJ
FM
FR
GA
GR
GT
GY
HN
HT
HU
ID
IE
IN
IS
IT
JO
JP
LI
LR
LS
MG
MM
MS
MW
MX
NA
NL
NO
NP
NR
PA
PE
PG
PL
SE
SH
SN
SR
ST
SV
TD
TG
TR
TZ
UA
UY
VE
VU
ZA

Sjors

unread,
Jan 31, 2008, 6:29:29 AM1/31/08
to GeoNames
Marc Wick wrote:

> ISO and FIPS are not the only codes, the EU is using NUTS codes and each
> country is having their own codes. From this perspective it would be
> best to add a generic element 'code' with an attribute 'type' that
> designates the code encoded in the element :
> <code type="ISO3166-2">NH</code>
> <code type="FIPS10-4">07</code>

Hi Marc,

I am not an XML guru but it seems like the best way to support all the
different code standards.

Sjors

Marc Wick

unread,
Jan 31, 2008, 4:00:41 PM1/31/08
to geon...@googlegroups.com
Hi Sjors

The modified service is deployed, it returns the ISO and FIPS codes for
administrative divisions as attributes.

The services 'countryCode' and 'countrySubdivision' have a new parameter
'radius' to specify a buffer for coastal areas.

Enjoy.

Marc

Reply all
Reply to author
Forward
0 new messages