# List of countries, states, cp, etc

**URL:** <https://www.ruby-forum.com/t/list-of-countries-states-cp-etc/74190>\
**Category:** Rails\
**Created:** [February 27, 2006, 4:10pm UTC](https://www.ruby-forum.com/t/list-of-countries-states-cp-etc/74190 "2006-02-27T16:10:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rorra](https://www.ruby-forum.com/u/rorra)\
**Post date:** [February 27, 2006, 4:10pm UTC](https://www.ruby-forum.com/t/list-of-countries-states-cp-etc/74190/1 "2006-02-27T16:10:22Z")

</div>

I’m doing a registration form.

I saw many registrations forms which asks you for a country and it lists  
all the countries of the world, and when you select a country the form  
is actualized with all the states or provinces, and when you select a  
state/province then the form is actualized with all the cities.

I’m looking to do something like that, is there a free service or pay  
services that offers such a list (perhaps by tables or by web services)  
that I can look for?

Thank you

---

<div class="post-metadata">

**Author:** ![rorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rorra](https://www.ruby-forum.com/u/rorra)\
**Post date:** [February 27, 2006, 4:34pm UTC](https://www.ruby-forum.com/t/list-of-countries-states-cp-etc/74190/2 "2006-02-27T16:34:18Z")

</div>

> I saw many registrations forms which asks you for a country and it  
> lists  
> all the countries of the world

I don’t know if such a service exists, but if you decide to roll your  
own solution, ISO maintains a list of countries and regions. Try a  
google on ISO 3166.

---

<div class="post-metadata">

**Author:** ![rorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rorra](https://www.ruby-forum.com/u/rorra)\
**Post date:** [February 27, 2006, 4:34pm UTC](https://www.ruby-forum.com/t/list-of-countries-states-cp-etc/74190/3 "2006-02-27T16:34:53Z")

</div>

Hello.

Rodrigo D. wrote:

> I?m doing a registration form.
> 
> I saw many registrations forms which asks you for a country and it lists  
> all the countries of the world, and when you select a country the form  
> is actualized with all the states or provinces, and when you select a  
> state/province then the form is actualized with all the cities.
> 
> I?m looking to do something like that, is there a free service or pay  
> services that offers such a list (perhaps by tables or by web services)  
> that I can look for?

Here is a US state list: [BigBold - Informasi Tentang Bisnis dan Marketing](http://www.bigbold.com/snippets/posts/show/1502)

I suppose such lists are available from other free softwares…

Rgds.

---

<div class="post-metadata">

**Author:** ![rorra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rorra](https://www.ruby-forum.com/u/rorra)\
**Post date:** [February 27, 2006, 4:50pm UTC](https://www.ruby-forum.com/t/list-of-countries-states-cp-etc/74190/4 "2006-02-27T16:50:11Z")

</div>

Thank you, I just forgot to mention that I need the global list, I guess  
there should be a web service or a company offering the service

Rodrigo D.

Iplan Networks Datos Personales  
removed\_email\_address@domain.invalid removed\_email\_address@domain.invalid  
www.iplan.com.ar www.rorra.com.ar  
5031-6303 15-5695-6027

-----Mensaje original-----  
De: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] En nombre de Aurélien DEHAY  
Enviado el: Lunes, 27 de Febrero de 2006 12:32 p.m.  
Para: removed\_email\_address@domain.invalid  
Asunto: Re: [Rails] list of countries, states, cp, etc.

Hello.

Rodrigo D. wrote:

> I?m doing a registration form.
> 
> I saw many registrations forms which asks you for a country and it  
> lists  
> all the countries of the world, and when you select a country the form

> is actualized with all the states or provinces, and when you select a  
> state/province then the form is actualized with all the cities.
> 
> I?m looking to do something like that, is there a free service or pay  
> services that offers such a list (perhaps by tables or by web  
> services)  
> that I can look for?

Here is a US state list: [BigBold - Informasi Tentang Bisnis dan Marketing](http://www.bigbold.com/snippets/posts/show/1502)

I suppose such lists are available from other free softwares…

## Rgds.

Aurélien

* * *

Rails mailing list  
removed\_email\_address@domain.invalid  
[http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)
