This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to extract PBF file from openstreetmap-website?

0

I have installed openstreetmap-website according this https://github.com/openstreetmap/openstreetmap-website/blob/master/INSTALL.md Now I can edit map but how to export data to pbf which I want to use in OSRM? Or exist simpler way to update OSRM from map editor?

asked 21 Aug '18, 10:32

Stremovskyy's gravatar image

Stremovskyy
36225
accept rate: 0%

edited 21 Aug '18, 10:33

Just download either the planet from the planet.openstreetmap.org, or obtain extracts prepared by Geofabrik on their download site. No need for the website or code: data for use by consumers is not usually accessed via an API.

(21 Aug '18, 10:39) SK53 ♦

I need to edit map and upload it to OSRM

(21 Aug '18, 10:42) Stremovskyy

One Answer:

3

The OSM backend uses https://github.com/zerebubuth/planet-dump-ng to create the planet pbf from the database.

In general you can poke around in https://github.com/openstreetmap/chef to see how various services are setup.

answered 21 Aug '18, 11:09

maxerickson's gravatar image

maxerickson
12.7k1083176
accept rate: 32%

1

Thanks man!! you're best!! planet-dump-ng solved all my problems!

(23 Aug '18, 08:41) Stremovskyy

Source code available on GitHub .