GuidesAPI Reference
Guides

Set the style

You can set the style of returned images when rendering traffic. For more information on the available styles, see Traffic flow. In this tutorial, the style is set to the night style.

Code

https://traffic.maps.hereapi.com/v3/flow/mc/9/272/177/png?style=explore.night

Procedure

Identify the available styles by querying the https://traffic.maps.hereapi.com/v3/info endpoint to check the values of the styles array in the JSON response. Select a style from the available styles and apply it using the style parameter by sending the above code request to set the style to explore.night.

Result

The response will return the following: Example of style=explore.night