osm2pdf
v3.2.0
Published
Generate pdf from OpenStreetMap tiles
Maintainers
Readme
OSM map to pdf
Generate pdf with OpenStreetMap tiles.

Usage
See also examples.
Download a route
You need to provide a route in GPX format. You can download it e.g. on graphhopper website or bicycle planning website cycle.travel.
npx osm2pdf --route --zoom=10 --input=path/to/route.gpx --output=path/to/output --tile-server=1Download a map
You need to provide GPS boundaries of the area you want to download.
npx osm2pdf --map -n=70.923 -w=-4.373 -s=55.756 -e=27.872 --zoom=9 --output=path/to/output --tile-server=2Show available tile servers
npx osm2pdf --list-tile-serversHelp
npx osm2pdf --helpNode compatibility
We use ECMAScript Modules which are supported since Node v8.
Use responsibly
Tiles are provided by various tile providers. Please use their resources responsibly and follow their respective usage policies.
