Setting walk speed for pedestrians

Walk speed can be adjusted in the request, as not everyone walks at the same pace. 'pedestrian[speed]' parameter should be requested to do so. If the parameter is not set, default speed (1 m/s) will be used.

Example

curl -X GET \
  'https://router.hereapi.com/v8/routes?origin=52.547019,13.328605&transportMode=pedestrian&destination=52.495002,13.501983&pedestrian[speed]=2&return=summary
{
  "routes": [
    {
      "id": "e9f1997b-81ea-4b1c-9441-73f9b8dddcb0",
      "sections": [
        {
          "id": "1ad0c672-60bd-4be5-baa9-336959bdc411",
          "type": "pedestrian",
          "departure": {
            "place": {
              "type": "place",
              "location": {
                "lat": 52.546886,
                "lng": 13.328481
              },
              "originalLocation": {
                "lat": 52.54702,
                "lng": 13.328605
              }
            }
          },
          "arrival": {
            "place": {
              "type": "place",
              "location": {
                "lat": 52.49493,
                "lng": 13.501934
              },
              "originalLocation": {
                "lat": 52.495003,
                "lng": 13.501983
              }
            }
          },
          "summary": {
            "duration": 7645,
            "length": 14798
          },
          "transport": {
            "mode": "pedestrian"
          }
        }
      ]
    }
  ]
}

Another example with default speed and different duration:

curl -X GET \
  'https://router.hereapi.com/v8/routes?origin=52.547019,13.328605&transportMode=pedestrian&destination=52.495002,13.501983&return=summary
{
  "routes": [
    {
      "id": "e9f1997b-81ea-4b1c-9441-73f9b8dddcb0",
      "sections": [
        {
          "id": "1ad0c672-60bd-4be5-baa9-336959bdc411",
          "type": "pedestrian",
          "departure": {
            "place": {
              "type": "place",
              "location": {
                "lat": 52.546886,
                "lng": 13.328481
              },
              "originalLocation": {
                "lat": 52.54702,
                "lng": 13.328605
              }
            }
          },
          "arrival": {
            "place": {
              "type": "place",
              "location": {
                "lat": 52.49493,
                "lng": 13.501934
              },
              "originalLocation": {
                "lat": 52.495003,
                "lng": 13.501983
              }
            }
          },
          "summary": {
            "duration": 14984,
            "length": 14798
          },
          "transport": {
            "mode": "pedestrian"
          }
        }
      ]
    }
  ]
}

results matching ""

    No results matching ""