Geometry simplification with interactive map layers

Map features stored in interactive map layers can be retrieved as tiles. Interactive map layers offer the ability to simplify the geometry of the features in the tiles by simply including the parameter mode=viz. This can be useful for reducing the amount of data that needs to be transferred to the client and helps the client to render the data faster.

In this example two very long routes, containing 31,600 and 22,408 coordinates respectively, were created using the HERE Routing API. The tiles returned by Interactive API, contain a simplified version of the route geometry optimized for the zoom level of the map. There is no visual difference between the original and the simplified geometry at the requested zoom level. However, the simplified geometry contains a significantly reduced number of coordinates.

This example uses: Interactive API, Leaflet, Tangram

Data source: Routes calculated by HERE Routing API

Source code: GitHub