Malformed YAML ... CharConversionException in leipzig_germany.osm.pbf

I am trying to import leipzig_germany.osm.pbf to perform a map matching using the provided test osm and gpx traces. However, I keep seeing the following error:

ishamac@Ishas-MacBook-Pro graphhopper % java -jar web/target/graphhopper-web-3.0-SNAPSHOT.jar import map-matching/files/leipzig_germany.osm.pbf

io.dropwizard.configuration.ConfigurationParsingException: map-matching/files/leipzig_germany.osm.pbf has an error:

  • Malformed YAML at line: 2, column: 2; java.io.CharConversionException: Invalid UTF-8 start byte 0x9c (at char #23, byte #-1)
    at [Source: (FileInputStream); line: 1, column: 1]

What is to be done?

You are passing the .osm.pbf file where you are supposed to pass your config file. Take a look at the documentation here: https://github.com/graphhopper/graphhopper/tree/13b7d337e28ec02c4f4b5f8da06e3f24207dc454/map-matching