1

I am trying to host OSRM server locally only for 1 city, Is it possible to get the .pbf file for the specific city (Since osrm server requires tiles in that format)? if Possible how? Or is there any alternative?

I already hosted osrm server for Berlin city using the documentation provided https://github.com/Project-OSRM/osrm-backend/wiki/Running-OSRM

2 Answers2

2

bbbike.org allows you to create pbf files for custom shapes via their online tool. Also, they have some ready-made pbf extracts for some cities here.

WaughWaugh
  • 1,012
  • 10
  • 15
1

You can take a look at OSM country and area extracts to check whether there is a PBF file for your city.

If not, download a larger extract containing your city and split it into a smaller geographic region, for example using osmium-tool with the extract argument.

scai
  • 20,297
  • 4
  • 56
  • 72