routesofflinegraphhoppermapsforge

How to create osm.pbf file?


I am working on a offline routing app for a particular region which will use graphhopper library for android. I want to know is there any way to create osm.pbf file for a region instead of downloading the file for the whole country. Moreover is it possible to create .map file for a particular region ?

Thanks.


Solution

  • The .map file can be created via mapsforge writer. The osm.pbf you can get via your database or your OSM extract using osmosis or other tools.

    But I guess you just have an .osm file downloaded? This can be read directly from GraphHopper no need for a conversion.