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 enabled and for environmental zones feature the default mode is disabled.

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

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?features=environmental%20zones:enabled,pois:disabled

The response renders the following tile:

To request the list of available features use the Features endpoint.

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

{
  "features": {
    "explore.day": [
      {
        "modes": [
          "disabled",
          "enabled"
        ],
        "name": "congestion_zones"
      },
      {
        "modes": [
          "disabled",
          "enabled"
        ],
        "name": "environmental_zones"
      },
      {
        "modes": [
          "enabled",
          "disabled"
        ],
        "name": "pois"
      },
      {
        "modes": [
          "disabled",
          "active_and_inactive"
        ],
        "name": "truck_restrictions"
      }
    ],
    "explore.night": [
      {
        "modes": [
          "disabled",
          "enabled"
        ],
        "name": "congestion_zones"
      },
      {
        "modes": [
          "disabled",
          "enabled"
        ],
        "name": "environmental_zones"
      },
      {
        "modes": [
          "enabled",
          "disabled"
        ],
        "name": "pois"
      },
      {
        "modes": [
          "disabled",
          "active_and_inactive"
        ],
        "name": "truck_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 ""