Skip to main content

OpenStreetMaps

Utilizing OpenStreetMaps data for various purposes.

Data Download

Download data from and extract the file.

Includes:

  • Raw osm data
  • Shapefiles
  • Geocoding
  • etc

Importing Data

Create a database DB_NAME and import the data. Make sure you have postgis extension installed.

CREATE EXTENSION postgis;

Osm2pgsql

osm2pgsql -c -d DB_NAME -U postgres -H localhost -W <path-to-osm-file>
  • -W will prompt for password.

Working with data - OverpassAPI

OverpassQL

References:

OverpassAPI Docker Image

Refer to OverpassAPI Docker Image.