Get street name and speed limit spans

For a request that specifies names and speed limit (spans=maxSpeed,names), there are three spans; the response will contain an additional "Invalidenstraße" span for the change in speed limit on that street.

curl -X GET \
   'https://router.hereapi.com/v8/routes?destination=52.530394,13.400683&origin=52.530728,13.383833&return=polyline&transportMode=car&spans=maxSpeed,names&apikey={YOUR_API_KEY}'
...
"spans": [
  {
    "offset": 0,
    "names": [
      {
        "language": "de",
        "value": "Invalidenstraße"
      }
    ],
    "speedLimit": 13.8888893
  },
  {
    "offset": 11,
    "names": [
      {
        "language": "de",
        "value": "Invalidenstraße"
      }
    ],
    "speedLimit": 8.333334
  },
  {
    "offset": 43,
    "names": [
      {
        "language": "de",
        "value": "Brunnenstraße"
      }
    ],
    "speedLimit": 8.333334
  }
],
...

Note: Relation to HERE Map Content

If you need more detailed underlying data, you can request references to the HERE Map Content topology segment with spans=segmentRef. Spans can be more detailed than a topology segment since they are a request-specific summary of segment anchors. For more details on topology segments and segment anchors, see the HERE Map Content Data Specification under Topology Model and Topology Attribution Referencing Model.

results matching ""

    No results matching ""