Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
1.33/5 (2 votes)
See more:
Hello..

Friends help with database for COUNTRY, STATE and, CITY
send me useful links

[edit]Removed urgency: it may be urgent for you, but it isn't for us. Stressing the urgency just gets peoples backs up and can slow responses. - OriginalGriff[/edit]
Posted
Updated 7-Feb-11 20:48pm
v2
Comments
OriginalGriff 8-Feb-11 2:48am    
What kind of database are you looking for?
Have you tried google?
Vineet_2109 8-Feb-11 2:59am    
ya tried google but still there..
and kind of web service or asp.net database if possible ..
OriginalGriff 8-Feb-11 3:09am    
No, what do you want the database to contain?
Vineet_2109 8-Feb-11 3:18am    
full list for country, state and cities either in xml or created database..
Sandeep Mewara 8-Feb-11 3:39am    
Is there a problem doing it yourself?

it is unlikely that this information will be available free of charege.
There are certain third parties, however, that provide this sort of information. See here[^], for example.

Sample article using above one found in CP is here
Simple Way to Implement Country/State/City Dropdown List in ASP.NET[^]
 
Share this answer
 
v2
Comments
thatraja 9-Feb-11 19:05pm    
Hi, sample article link has been added.
Abhinav S 10-Feb-11 0:26am    
Thanks. I did not know an article for this website already existed. :)
thatraja 10-Feb-11 0:30am    
welcome.
Neither I too. :-)
Arpit S 11-Jan-18 1:57am    
Is it not a slow process to send data request to some other URL for getting this information ? I guess even webpages having such sections also should be adaptive in the fastest way possible...

1. As per the observations from geodatasource https://www.geodatasource.com/software/world-major-cities-drop-down-list-source-codes, it felt a bit slow while loading the information, but then it is obtained that for every selection it is sending an AJAX request to its database server and in return it is giving out a JSON text containing the piece of information which is required to be added in the dropdown for States/Region or for Cities/ Towns

2. Creating Database is also has some cons for Managing and Maintaining which require constant updates for any changes or any other thing.

So, keeping both the points into account, My other question is what we can do in this scenario for making it into an AI for auto updating the content for any changes ???
AFAIK, there is no single free source you can get it. You have 2 options
1. You can crawl the net and get all the data you want and create your own database. Then you would need to maintain it to keep up with all the changes.
2. You can buy a geodata from third party companies. There are many who offer such data.
 
Share this answer
 
 
Share this answer
 
this is for an example of that for
country table - country_id,country_name
state table - s_id,sname,countryid
city table - cid,cname,sid


DATABASE SCRIPT
 
Share this answer
 
Comments
CHill60 11-Jan-14 11:08am    
Hitting "Download" when you have no idea of what might be lurking behind is a good way to download malware
The jquery.country plugin may helps, is a plugin for country/state/city dropdown without any use of database. http://oohm-software.github.io/jquery.country/[^]
 
Share this answer
 
Comments
[no name] 14-Apr-14 9:18am    
There is really no reason to answer 3 year old questions that already have plenty of answers.
Lucas Oliveira 19-Apr-14 22:14pm    
There is really no reason to reply a solution for 3 year old question.

But to answer you, this is not a dead post, a lot of people will look for same question.
Ian Klek 12-Sep-17 11:31am    
3 years later, I'm looking at it.
Adebayo Adesegun Daniel 27-Apr-18 8:27am    
4 years later, I'm still looking at it
Member 14228878 15-May-19 1:24am    
5 years later and still looking at it .
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900