Skip to content

Return elevation data in OSRM response #6846

Open
@Redy1908

Description

@Redy1908

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
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions