Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elevation information wrong, leads to absurd distances and times #1697

Open
1 task done
koebi opened this issue Feb 21, 2024 · 0 comments
Open
1 task done

Elevation information wrong, leads to absurd distances and times #1697

koebi opened this issue Feb 21, 2024 · 0 comments

Comments

@koebi
Copy link
Collaborator

koebi commented Feb 21, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Where did you encounter this issue?

live API

Request URL

https://api.openrouteservice.org/v2/pdirections/foot-walking/geojson

POST Request Body

{"preference":"recommended","language":"de","instructions":true,"geometry":true,"units":"m","attributes":["detourfactor","percentage"],"instructions_format":"html","elevation":true,"coordinates":[[113.915976,22.247495],[113.915713,22.248041]],"extra_info":["steepness","waytype","surface"]}

Response

Response
{"type":"FeatureCollection","metadata":{"attribution":"openrouteservice.org | OpenStreetMap contributors","service":"routing","timestamp":1708503195304,"query":{"coordinates":[[113.915976,22.247495],[113.915713,22.248041]],"profile":"foot-walking","preference":"recommended","format":"geojson","units":"m","language":"de","geometry":true,"instructions":true,"instructions_format":"html","attributes":["detourfactor","percentage"],"elevation":true,"extra_info":["steepness","waytype","surface"]},"engine":{"version":"7.1.1","build_date":"2024-01-29T14:41:12Z","graph_date":"2024-02-12T02:24:48Z"}},"bbox":[113.915677,22.247448,12111.2,113.915987,22.248037,20366.32],"features":[{"bbox":[113.915677,22.247448,12111.2,113.915987,22.248037,20366.32],"type":"Feature","properties":{"ascent":792.3,"descent":8769.6,"transfers":0,"fare":0,"segments":[{"distance":27625.1,"duration":19890.1,"steps":[{"distance":27625.1,"duration":19890.1,"type":11,"instruction":"Weiter südwestlich auf <b>鳳凰徑第3段 Lantau Trail Section 3</b>","name":"鳳凰徑第3段 Lantau Trail Section 3","way_points":[0,9]},{"distance":0.0,"duration":0.0,"type":10,"instruction":"Sie erreichen 鳳凰徑第3段 Lantau Trail Section 3 (rechts)","name":"-","way_points":[9,9]}],"detourfactor":394.51,"percentage":100.0,"ascent":792.32421875,"descent":8769.62158203125}],"extras":{"surface":{"values":[[0,9,0]],"summary":[{"value":0.0,"distance":27625.1,"amount":100.0}]},"waytypes":{"values":[[0,9,7]],"summary":[{"value":7.0,"distance":27625.1,"amount":100.0}]},"steepness":{"values":[[0,2,5],[2,4,-5],[4,6,5],[6,9,-5]],"summary":[{"value":-5.0,"distance":24610.7,"amount":89.09},{"value":5.0,"distance":3014.4,"amount":10.91}]}},"way_points":[0,9],"summary":{"distance":27625.1,"duration":19890.1}},"geometry":{"coordinates":[[113.915987,22.247476,20088.5],[113.91593,22.247448,20366.3],[113.915923,22.247562,19653.5],[113.915905,22.247585,19571.9],[113.915855,22.247551,19756.5],[113.915794,22.247557,20086.4],[113.915758,22.247831,15942.9],[113.915757,22.247874,14410.2],[113.915686,22.247967,13156.2],[113.915677,22.248037,12111.2]],"type":"LineString"}}]}

Current behavior

For a route that should be 100m it returns a distance of 27km and a duration of 5h31m with a descent of 8.8km.

Expected behavior

Yield 100m, like 1min and maybe a descent of 60m or sth.

Openrouteservice Version

7.1.1

Build date

2024-01-29T14:41:12Z

Graph date

2024-02-12T02:24:48Z

Forum Topic Link

https://ask.openrouteservice.org/t/wrong-elevation-and-distance-for-the-route/5792/3

@takb takb added this to To do in ors general Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
ors general
  
To do
Development

No branches or pull requests

1 participant