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

Return elevation data in OSRM response #6846

Open
Redy1908 opened this issue Apr 13, 2024 · 0 comments
Open

Return elevation data in OSRM response #6846

Redy1908 opened this issue Apr 13, 2024 · 0 comments

Comments

@Redy1908
Copy link

Redy1908 commented Apr 13, 2024

Feature

Please describe the feature you would like to see in OSRM.
Images are often a good way to illustrate your requested feature.

When integrating third party raster data it would be advantageous to incorporate elevation data for the respective locations in the response. This information could be leveraged in numerous ways, such as plotting a graph to illustrate the elevation trend along the route.

The following is a STEP extracted from an OSRM response with the added elevation field:

{
   "geometry":"...",
   "maneuver":{
      "bearing_after":299,
      "bearing_before":0,
      "location":[
         "lat",
         "long",
         ELEVATION
      ],
      "modifier":"right",
      "type":"depart"
   },
   "mode":"driving",
   "driving_side":"right",
   "name":"Street Name",
   "intersections":[
      {
         "out":0,
         "entry":[
            true
         ],
         "bearings":[
            299
         ],
         "location":[
            "lat",
            "long",
            ELEVATION
         ]
      }
   ],
   "weight":71.4,
   "duration":22,
   "distance":141.3
}
@Redy1908 Redy1908 changed the title Feature Request: Return elevation data in OSRM response Return elevation data in OSRM response Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant