https://github.com/osmlab/osm-place-ranks
https://github.com/osmlab/osm-place-ranks
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/osmlab/osm-place-ranks
- Owner: osmlab
- License: bsd-3-clause
- Created: 2012-10-03T22:03:16.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-10-04T15:43:23.000Z (almost 14 years ago)
- Last Synced: 2025-06-07T20:09:31.219Z (about 1 year ago)
- Language: Python
- Size: 294 KB
- Stars: 17
- Watchers: 67
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# OSM Place-ranks
Joins city rankings from Natural Earth into OSM data with fuzzy matching.
### Setup:
- 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`
### Usage:
python rank-places.py | psql -U