This example shows the bicyle route at the Yungas Road (also known as the "Death road") in Bolivia. Markers with the altitude values help to visualise the 3500m of descent for this road. Each marker is located at the altitude associated with the given route vertex. Markers' icons are assigned a normalized color from red (approx. altitude 4600 meters above see level) to blue (approx. altitude 1100 meters above see level).

Code

Access to the routing service is obtained from the H.service.Platform by calling getRoutingService(null, 8). The calculateRoute() method is used to calculate the bicycle route by passing in the relevant parameters as defined in Routing API. The markers are supplied with the latitude, longitude and altitude obtained from the routing response, the altitude value provides the elevation for the marker.