Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Latest commit 3dba302 AJ Ashton Removes ldir, which is a separate concept/task
Failed to load latest commit information. init init
ne_cities.sql init Removes ldir, which is a separate concept/task

OSM Place-ranks

Joins city rankings from Natural Earth into OSM data with fuzzy matching.


  • Create a PostGIS-enabled PostgreSQL database if you do not have one. By default this script assumes it is named 'osm'.
  • Import the Natural Earth cities information included here. Eg: psql -U postgres -f ne_cities.sql -d osm
  • Import OSM places with Imposm if you have not already. These can be from a full planet dump, a regional extract, an Overpass API query...
  • Make sure the Python package 'unidecode' is installed. Eg: sudo pip install unidecode


python | psql -U <pg_user> <pg_database>
Something went wrong with that request. Please try again.