Results 1 to 28 of 28

Thread: Online Database of locations in the world

  1. #1

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Exclamation Online Database of locations in the world

    Hi, I'm looking for a free service that provides a database of all(better if it is complete) locations in the world with proper hierarchy from Countries to State and Province, down to Cities/Municipalities.

    Thanks for any help.
    Manually encoding them in my database is really a huge task.

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Online Database of locations in the world

    Locations of what?

  3. #3

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Re: Online Database of locations in the world

    Quote Originally Posted by baja_yu View Post
    Locations of what?
    List of all countries, states, provinces, cities, and towns all over the world. ^_^

  4. #4
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Online Database of locations in the world

    Don't take this the wrong way, but: good luck. It will be hard to do even for developed countries. As for the third world, I wouldn't even try. Countries, states and provinces sounds doable, but I can't even imagine the list of cities and towns.

  5. #5

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Re: Online Database of locations in the world

    Quote Originally Posted by baja_yu View Post
    Don't take this the wrong way, but: good luck. It will be hard to do even for developed countries. As for the third world, I wouldn't even try. Countries, states and provinces sounds doable, but I can't even imagine the list of cities and towns.
    I saw several web-sites with their own list of these locations. If I'm going to encode these locations one-by-one; it will take forever.

    I'm trying to look at google map's API if this feature exists.

  6. #6
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Online Database of locations in the world

    Can you list the places on those websites? Maybe a script could be written to scrape the data.

  7. #7

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Re: Online Database of locations in the world

    This is the only one I remembered: http://www.olx.com/

  8. #8
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Online Database of locations in the world

    Would this help: http://en.wikipedia.org/wiki/List_of..._United_States

    (I love Wiki lists btw )

  9. #9

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Exclamation Re: Online Database of locations in the world

    Quote Originally Posted by baja_yu View Post
    Would this help: http://en.wikipedia.org/wiki/List_of..._United_States

    (I love Wiki lists btw )
    I love them too. I already got several lists through it but somehow these lists were incomplete and somewhat broken.
    And I wish they'll expose some APIs to their database.

    Still looking at Google Maps API.

  10. #10
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Online Database of locations in the world


  11. #11

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Re: Online Database of locations in the world

    Quote Originally Posted by baja_yu View Post
    It seems their list focused only for US.
    But my app will need to serve everyone in the world.
    Anyway, thanks for the help.

  12. #12
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Online Database of locations in the world

    At least it's a start. I doubt you will be able to find everything in one place. But who knows.

  13. #13
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Online Database of locations in the world


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  14. #14
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Online Database of locations in the world

    I doubt you will find a free service where you can get all that information for free! However, I am aware of sites selling the information for a small price.

    Edit:

    I found World City DB! That seems to have what your are looking for, all free.
    Last edited by Nightwalker83; Dec 3rd, 2010 at 11:22 PM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  15. #15
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Online Database of locations in the world

    Quote Originally Posted by Nightwalker83 View Post
    I found World City DB! That seems to have what your are looking for, all free.
    Right of the bat, my country is missing from there I've also checked some of the others that I am very familiar with, and a lot of places are missing. And I'm not talking small villages and towns. There's places with population over 50K that aren't listed. So, the rest of it is probably not complete either.

  16. #16

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Re: Online Database of locations in the world

    Thank you guys.
    Sorry for late response, I'm having a problem with the IP banning here so I just use this TOR Network just to respond.

    Anyway, I just downloaded a 100+MB list of cities with 3M+ records from http://geolite.maxmind.com/
    And downloading a 191MB compressed file from http://www.geonames.org/export/.
    Maybe this will help.

  17. #17
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Online Database of locations in the world

    Quote Originally Posted by baja_yu View Post
    Right of the bat, my country is missing from there I've also checked some of the others that I am very familiar with, and a lot of places are missing. And I'm not talking small villages and towns. There's places with population over 50K that aren't listed. So, the rest of it is probably not complete either.
    Looking further down the page I noticed that it is actually a paid service not a free one after all. So yeah, You would have to pay to get all the countries, etc. I noticed that some of the place names are spelt incorrectly too.

    @eSPiYa,

    I found that site but wasn't if it had what you wanted.
    Last edited by Nightwalker83; Dec 4th, 2010 at 01:37 AM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  18. #18

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Re: Online Database of locations in the world

    Yes, it is not. That is why I'll create my own and will try to provide everyone this database for free(soon).
    My VPS' bandwidth is un-metered but with have a limit of 50mbps. So will try to limit the requests/sec.

  19. #19
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Online Database of locations in the world

    Though i am not sure but you may try out some registration page of websites where they ask you to provide your country,state/province,city,locality,etc etc. you may get all the names and details from the view-source of the html of the website.

    If you find my reply helpful , then rate it

  20. #20
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Online Database of locations in the world

    Quote Originally Posted by gautamshaw View Post
    Though i am not sure but you may try out some registration page of websites where they ask you to provide your country,state/province,city,locality,etc etc. you may get all the names and details from the view-source of the html of the website.
    When the country is being selected from the combobox, it would generate the State list dynamically. And upon selecting the state, it would dynamically generate the City/Locations list(filled into another combobox).

    That's how it works...

    So, they have a server side scripting which will list all the states for the queried country name and the same goes for cities too..

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  21. #21
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Online Database of locations in the world

    Personally, I don't think you should supply the user a drop down of cities. Let the user type it in. 1) As you're finding out, getting a complete list is next to impossible. 2) Inevitably, you'll run into a user whose town isn't listed. 3) Maintenance will be a nightmare.

    I've never run into site where the city was a drop down... it's always been a textbox.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  22. #22
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Online Database of locations in the world

    The site that I have seen belongs to a government organization(the combobx for country is disabled with a selection as India). Another site that I have seen will do the dynamic loading for States, upon selecting the country.

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  23. #23

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Re: Online Database of locations in the world

    Thank you guys for the ideas.
    I'll just make a list of continents and countries(to group them) then let them input their locations. After a certain interval; I just add 'em to the database.

    I also using Wikipedia as my source just as suggested before.
    Maybe I could open a portal for this soon so everyone could benefit for this.

    Other ideas and help are also welcome. ^_^

  24. #24
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: Online Database of locations in the world

    Quote Originally Posted by eSPiYa View Post
    Thank you guys for the ideas.
    I'll just make a list of continents and countries(to group them) then let them input their locations. After a certain interval; I just add 'em to the database.

    I also using Wikipedia as my source just as suggested before.
    Maybe I could open a portal for this soon so everyone could benefit for this.

    Other ideas and help are also welcome. ^_^
    You could make it as a webservice (free/paid)

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  25. #25

    Thread Starter
    Fanatic Member eSPiYa's Avatar
    Join Date
    Jun 2006
    Location
    in our house
    Posts
    751

    Re: Online Database of locations in the world

    Yeah! I'll make it a public web service and it is free but will be in JSON form only due to limitation in bandwidth.
    The numbers of request will be limited too(I hope I can limit it through C#/Mono).

    Will think about premium(paid service) to support it. But for the moment only the free service.
    Need to finish my main project before Dec. 25 though.

  26. #26
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Online Database of locations in the world

    Quote Originally Posted by techgnome View Post
    Personally, I don't think you should supply the user a drop down of cities. Let the user type it in. 1) As you're finding out, getting a complete list is next to impossible. 2) Inevitably, you'll run into a user whose town isn't listed. 3) Maintenance will be a nightmare.

    I've never run into site where the city was a drop down... it's always been a textbox.

    -tg
    Yeah, new places seem to appear out of nowhere.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  27. #27
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Online Database of locations in the world

    Don't don't appear often but they do change names. Countries do too. Take mine for example. In my 27 years I've lived in 4 different countries and I haven't moved an inch basically. Then, cities and countries are called differently in different countries/languages, which is something to take into account. Will this DB then be all in English or will every name be in the language spoken in the country. Then there are countries where more than one language is used. Then how do you treat the small towns and villages? There are so many in my country alone that aren't on the map. It's like a 25.000 piece puzzle. It can be done, but I sure as hell aint doing it

  28. #28
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Online Database of locations in the world

    It's not so much about new places appearing out of no where, but a matter of granularity... Most of the towns around here are big enough to possibly make the list... but at the same time, I know of plenty of towns out here whose population is in the tripple digits... and at least one whose population is a mere 95. And that's just within a 75 mile radius... it gets worse as you go further out.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width