Get features by ID

Requesting one feature

GET /<Base path for the interactive API from the API Lookup Service>/layers/{layerId}/features/{featureId}
Host: <Hostname for the interactive API from the API Lookup Service>
Authorization: Bearer <Authorization Token>
Cache-Control: no-cache

Note

For authorization in a GET request you can also use an API Key as a query parameter instead of a bearer token in an authorization header.

Response

{
  "type": "Feature",
  "id": "{featureId}",
  "geometry":
  {
    "type": "Point",
    "coordinates":
    [
      -2.960847,
      53.430828
    ]
  },
  "properties":
  {
    "name": "Anfield",
    "@ns:com:here:xyz":
        {},
        "amenity": "Football Stadium",
        "capacity": 54074,
        "popupContent": "Home of Liverpool Football Club"
  }
}

Requesting multiple features

Note

Requesting multiple features will always return a FeatureCollection, even if the request returns only one or no feature.

If you want to get more than one feature, your request has to look like the following.

GET /<Base path for the interactive API from the API Lookup Service>/layers/{layerId}/featuress?id={featureId1},{featureId2},{featureId3}

Response

{
    "type": "FeatureCollection",
    "features":
    [
      {
        "type": "Feature",
        "geometry":
        {
          "type": "Point",
          "coordinates":
          [
            -2.960847,
            53.430828
          ]
        },
        "properties":
        {
           "@ns:com:here:xyz":
           {},
           "name": "Anfield",
           "amenity": "Football Stadium",
           "capacity": 54074,
           "popupContent": "Home of Liverpool Football Club"
          }
      }
    ]
}

Note

Another way of requesting multiple ID is ?id={featureId1},id={featureId2},id={featureId3}

results matching ""

    No results matching ""