@karussell I have tried to use the elevation information but without success.
I copied the configuration I have on graphhopper API to the one for the map-matching library. And the result is:
graphhopper:
datareader.file: map-data/leipzig_germany.osm.pbf
graph.location: graph-cache
graph.flag_encoders: hike
prepare.ch.weightings: no
graph.elevation.provider: multi
graph.elevation.calc_mean: true
graph.elevation.smoothing: true
graph.elevation.cache_dir: ./srtmprovider/
graph.elevation.dataaccess: RAM_STORE
server:
applicationConnectors:
- type: http
port: 8989
# for security reasons bind to localhost
bindHost: localhost
adminConnectors:
- type: http
port: 8990
bindHost: localhost
However, after removing the graph-cache folder, I run the map-matching import (no errors here) and I try to match a GPX file, but there is no elevation data added to the result GPX.
This is how I import:
java -jar -Xms8G -Xmx8G matching-web/target/graphhopper-map-matching-web-0.12-SNAPSHOT.jar import ../main_maps/andorra_france_spain.osm.pbf --vehicle hike
This is how I match:
java -jar matching-web/target/graphhopper-map-matching-web-0.12-SNAPSHOT.jar match camino-de-santiago-del-baztan.gpx
Thanks in advance!