Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8264323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:24:53+00:00 2026-06-08T04:24:53+00:00

I spent my afternoon looking for open databases with the most important cities all

  • 0

I spent my afternoon looking for open databases with the most important cities all over the world,

most of them are premium and costs something like $400, but since I’m working on a open source project I would like to use open data, is there somewhere where I can download the name of important cities?

I found open street map but it is 16gb of things such as nodes relations, but I only need name of cities and coordinates,

thank you very much,

g

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T04:24:56+00:00Added an answer on June 8, 2026 at 4:24 am

    This might be more than you’re after, but you could use the Overpass API to query all nodes with a key value pair of ["place"="city"].

    E.g. go to http://www.overpass-api.de/query_form.html and enter the following:

    node
      ["place"="city"];
    out body;
    

    for XML output, or the following for JSON:

    [out:json];
    node
      ["place"="city"];
    out body;
    

    The output took a minute or so to return to me (it returned 5,000+ nodes), but looks like the following:

    <?xml version="1.0" encoding="UTF-8"?>
    <osm version="0.6" generator="Overpass API">
    <note>The data included in this document is from www.openstreetmap.org. It has there been collected by a large group of contributors. For individual attribution of each item please refer to http://www.openstreetmap.org/api/0.6/[node|way|relation]/#id/history </note>
    <meta osm_base="2012-07-22T13:38:02Z"/>
    
      <node id="107775" lat="51.5072759" lon="-0.1276597">
        <tag k="capital" v="yes"/>
        <tag k="is_in" v="England, United Kingdom, UK, Great Britain, Europe"/>
        <tag k="is_in:continent" v="Europe"/>
        <tag k="is_in:country" v="United Kingdom"/>
        <tag k="name" v="London"/>
        <tag k="name:ast" v="Londres"/>
        <tag k="name:be" v="Лондан"/>
        <tag k="name:br" v="Londrez"/>
        <tag k="name:cs" v="Londýn"/>
        <tag k="name:cy" v="Llundain"/>
        <tag k="name:de" v="London"/>
        <tag k="name:el" v="Λονδίνο"/>
        <tag k="name:en" v="London"/>
        <tag k="name:eo" v="Londono"/>
        <tag k="name:es" v="Londres"/>
        <tag k="name:fa" v="لندن"/>
        <tag k="name:fi" v="Lontoo"/>
        <tag k="name:fr" v="Londres"/>
        <tag k="name:ga" v="Londain"/>
        <tag k="name:gd" v="Lunnainn"/>
        <tag k="name:gv" v="Lunnin"/>
        <tag k="name:he" v="לונדון"/>
        <tag k="name:is" v="Lundúnir"/>
        <tag k="name:it" v="Londra"/>
        <tag k="name:ja" v="ロンドン"/>
        <tag k="name:ku" v="London"/>
        <tag k="name:la" v="Londinium"/>
        <tag k="name:lv" v="Londona"/>
        <tag k="name:nl" v="Londen"/>
        <tag k="name:pl" v="Londyn"/>
        <tag k="name:pt" v="Londres"/>
        <tag k="name:ru" v="Лондон"/>
        <tag k="name:sk" v="Londýn"/>
        <tag k="name:sr" v="Лондон"/>
        <tag k="name:sv" v="London"/>
        <tag k="name:uk" v="Лондон"/>
        <tag k="name:vi" v="Luân Äôn"/>
        <tag k="name:zh" v="伦敦"/>
        <tag k="name:zh_pinyin" v="Lúndūn"/>
        <tag k="note" v="Centre of London classed as on the charles I moment near trafalgar square"/>
        <tag k="place" v="city"/>
        <tag k="population" v="7556900"/>
        <tag k="rank" v="0"/>
        <tag k="wikipedia" v="http://en.wikipedia.org/wiki/London"/>
        <tag k="wikipedia:en" v="London"/>
        <tag k="wikipedia:fr" v="Londres"/>
      </node>
    

    or the following for JSON:

    {
      "version": 0.6,
      "generator": "Overpass API",
      "osm3s": {
        "timestamp_osm_base": "2012-07-22T14:02:02Z",
        "copyright": "The data included in this document is from www.openstreetmap.org. It has there been collected by a large group of contributors. For individual attribution of each item please refer to http://www.openstreetmap.org/api/0.6/[node|way|relation]/#id/history"
      },
      "elements": [
    
    {
      "type": "node",
      "id": 107775,
      "lat": 51.5072759,
      "lon": -0.1276597,
      "tags": {
        "capital": "yes",
        "is_in": "England, United Kingdom, UK, Great Britain, Europe",
        "is_in:continent": "Europe",
        "is_in:country": "United Kingdom",
        "name": "London",
        "name:ast": "Londres",
        "name:be": "Лондан",
        "name:br": "Londrez",
        "name:cs": "Londýn",
        "name:cy": "Llundain",
        "name:de": "London",
        "name:el": "Λονδίνο",
        "name:en": "London",
        "name:eo": "Londono",
        "name:es": "Londres",
        "name:fa": "لندن",
        "name:fi": "Lontoo",
        "name:fr": "Londres",
        "name:ga": "Londain",
        "name:gd": "Lunnainn",
        "name:gv": "Lunnin",
        "name:he": "×œ×•× ×“×•×Ÿ",
        "name:is": "Lundúnir",
        "name:it": "Londra",
        "name:ja": "ロンドン",
        "name:ku": "London",
        "name:la": "Londinium",
        "name:lv": "Londona",
        "name:nl": "Londen",
        "name:pl": "Londyn",
        "name:pt": "Londres",
        "name:ru": "Лондон",
        "name:sk": "Londýn",
        "name:sr": "Лондон",
        "name:sv": "London",
        "name:uk": "Лондон",
        "name:vi": "Luân Äôn",
        "name:zh": "伦敦",
        "name:zh_pinyin": "Lúndūn",
        "note": "Centre of London classed as on the charles I moment near trafalgar square",
        "place": "city",
        "population": "7556900",
        "rank": "0",
        "wikipedia": "http://en.wikipedia.org/wiki/London",
        "wikipedia:en": "London",
        "wikipedia:fr": "Londres"
      }
    },
    

    More info:

    • http://wiki.openstreetmap.org/wiki/Tag:place%3Dcity

    • http://wiki.openstreetmap.org/wiki/Overpass_API/Language_Guide#Find_something

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just spent a very frustrating afternoon trawling Google looking for a commercial-grade WPF
I have spent the afternoon trying to wrap my mind around how to translate
I spent all of yesterday reading various articles/tutorials on Hibernate and although I am
Good afternoon all. I am aware that if we close() an java.io.OutputStream , it
OK, I feel dumb asking this, but I've spent the whole afternoon trying to
spent hours on end searching the net but it seems im looking for one
Having spent a small age looking for the solution and having now found it,
Spent a bunch of time looking at this.. It seems that what little info
Spent all day trying to generate an xmlbeans binding using wsdl2java (Axis2 1.5.4) Completely
Today I spent my afternoon with analysing a NoClassDefFoundError. After verifying the classpath again

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.