Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

How to make map-matching include the elevation data? #144

Open
carlos-mg89 opened this issue Jan 10, 2019 · 2 comments
Open

How to make map-matching include the elevation data? #144

carlos-mg89 opened this issue Jan 10, 2019 · 2 comments

Comments

@carlos-mg89
Copy link

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
Copy link
Author

@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
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant