1

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.

4

2 回答 2

1

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.

于 2015-02-20T15:33:25.520 回答
1

I used osmconvert (from PBF to PBF) to extract a boundary box subset out of the PBF file. Thus download the country file as a PBF; create a subset PBF file using osmconvert; process the PBF file for my GraphHopper, Nominatim and friends use.

于 2015-03-11T15:13:56.570 回答