abrensch / brouter

configurable OSM offline router with elevation awareness, Java + Android
MIT License
490 stars 118 forks source link

Replace XML parser with pbfparser #555

Closed zod closed 1 year ago

zod commented 1 year ago

As explained in #468 BRouter currently has two parsers

We should just use PbfParser and remove the "XML" parser. This adds a dependency on osmosis/protobuf, but the JAR file size only slightly increased to 2.2 MB. I think this slight increase is worth avoiding the building hassle.

PbfParser has an optimization which polls its input file to allow reading a pbf file while update from osmupdate is still in progress. For small files (e.g. when testing) this causes a delay of at least two minutes, therefore it's now configurable using avoidMapPolling (e.g. java -davoidMapPolling=true).

Fixes #468

afischerdev commented 1 year ago

Worked for me - MapcreatorTest and others on Win10.