Features

The HERE Raster Tile API provides a features parameter that you can use to select optional tile content.

Available features are defined per style - each style supports a different set of features. A feature has a set of modes. Only one mode can be active at a time. If you do not specify any mode for a feature, the feature is using a default mode. The default mode depends on the feature. For example, for pois feature the default mode is all and for environmental zones feature the default mode is disabled.

Advanced Features

Requests that include the vehicle_restrictions feature, for example, requests containing the features=vehicle_restrictions:active_and_inactive parameter value, fall into the transaction category based on the Advanced Raster Tile HERE Map Rendering. For more information, see HERE platform pricing.

Note: The following examples use a HERE API Key / Token to authenticate your request. For the available authentication options, see the Get started.

For example, a user wants to display a map with environmental zones information, but without the POIs. In order to do so, add a features parameter that specifies the mode for each feature.

https://maps.hereapi.com/v3/base/mc/9/272/177/png?size=512&features=environmental_zones:all,pois:disabled

The response renders the following tile:

To request the list of available features, use the features endpoint. For more information, see the API Reference documentation.

When you make a features request, the response is similar to the example below.

{
  "features": {
    "explore.day": [
      {
        "modes": [
          "disabled",
          "all"
        ],
        "name": "congestion_zones"
      },
      {
        "modes": [
          "disabled",
          "all"
        ],
        "name": "environmental_zones"
      },
      {
        "modes": [
          "all",
          "disabled"
        ],
        "name": "pois"
      },
      {
        "modes": [
          "disabled",
          "active_and_inactive"
        ],
        "name": "vehicle_restrictions"
      }
    ],
    "explore.night": [
      {
        "modes": [
          "disabled",
          "all"
        ],
        "name": "congestion_zones"
      },
      {
        "modes": [
          "disabled",
          "all"
        ],
        "name": "environmental_zones"
      },
      {
        "modes": [
          "all",
          "disabled"
        ],
        "name": "pois"
      },
      {
        "modes": [
          "disabled",
          "active_and_inactive"
        ],
        "name": "vehicle_restrictions"
      }
    ]
}

The default mode is always the first mode in the modes array.

You can store the list of features in your client application. You must refresh this value every 24 hours.

results matching ""

    No results matching ""