Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

API or database to load data for Country, State/province/region, and city select menus [closed]

anyone know of a solution? i have found online a select menu for countries, but i need either an API or a database with every state/province and major city in each country.

like image 651
Test Tester Avatar asked Jul 12 '11 03:07

Test Tester


1 Answers

Take a look at GeoNames. You can download (just about) everything they have and create your own local databases, or you can use their REST Webservice API. As an added bonus, they even have already made client libraries.

like image 172
Yanick Rochon Avatar answered Sep 19 '22 07:09

Yanick Rochon