map-matching icon indicating copy to clipboard operation
map-matching copied to clipboard

How to make map-matching include the elevation data?

Open carlos-mg89 opened this issue 7 years ago • 2 comments

I have tried to include the elevation data following the information I read in this forum post https://discuss.graphhopper.com/t/map-matching-with-elevation-data/2238/5

However, the elevation data is never included, and it actually seems that nothing is happening at all.

This is my config file:

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

I tried even copying the srtmprovider folder of my graphhopper (since I'm using the same .osm.pbf file to use map-matching library), but it made no difference.

The map matching is working, but the elevation data is never attached.

Could anyone help me please? I'd use the graphhopper library to obtain the elevation data, but the GPX files I've got have thousands of points, and I'd like to map-match them, in order to remove inconsistencies with the reality, since the GPX files aren't exact.

Thanks in advance!!!

carlos-mg89 avatar Jan 10 '19 15:01 carlos-mg89

@karussell sorry to bother you with this matter, but would you know by any chance how to make the elevation data to be included on the matched GPX? I asked on the GraphHopper forum but got no answer.

carlos-mg89 avatar Jan 22 '19 11:01 carlos-mg89

I solved this matter by using an elevation service (this one https://github.com/racemap/elevation-service ). You have to download 200GB of elevation data, and then query a local server, either by getting all the coordinates into an array or by querying it one by one.

It's not a solution built into the map matching tool, but it definitely works with it.

If you consider that this issue is solved with my comment, then you can close it if you fancy.

carlos-mg89 avatar Aug 29 '19 08:08 carlos-mg89