Get started

This section outlines how to quickly get started using the Waypoints Sequence v8 service on the HERE platform.

  1. Get a HERE account
  2. Create a project
  3. Get an API key
  4. Send a request
  5. Next steps

Note

This section provides information on the minimum setup required to quickly begin using the Waypoints Sequence v8 service. For more detailed information on HERE account setup, project creation, service linking, app registration, and authentication, see the Identity & Access Management Guide.

Get a HERE account

If your organization has signed up for HERE Workspace or HERE Marketplace, contact your organization admin who can invite you to join the HERE platform organization established for your company. You can also request a free trial of the HERE platform if your company does not have an organization established for it. For more information, see the HERE platform pricing.

Create a project

To create a project, follow these steps:

  1. Sign in to the HERE platform using your HERE account.
  2. Open the Projects Manager from the launcher.
  3. Click Create new project.
  4. Enter a name for the project. Project names don't have to be unique.
  5. Enter a project ID. Project IDs must be unique within an organization and cannot be changed for the lifetime of the organization. Project IDs must be between 4 and 16 characters in length.
  6. Optional: Enter an optional description.
  7. Click Save.
  8. On the Resources tab, select Services and then click Link a Service.
  9. Search for the HERE Waypoints Sequence API v8 service and click Link.
  10. Click Done.

Get an API key

To get an API key, follow these steps:

  1. Sign in to the HERE platform using your HERE account.
  2. Select the Access Manager from the launcher.
  3. Select the Apps tab and click Register new app.
  4. Enter a name for the app.
  5. Optional: Enter a description for the app.
  6. Optional: Select the project you created in the previous procedure from the Default access to a project field.
  7. Click Register. The HERE platform creates a new app with a unique app ID.
  8. On the Credentials tab, select API Keys and then click Create API key to generate a maximum of two API Keys for your application authentication credentials. The API key is created and displayed.

Send a request

In this example request, the user is looking for the fastest way from the Central Station in Wiesbaden, Germany, to the Central Station in Mainz, Germany, passing through the Central Stations in Frankfurt, Darmstadt, Hanau and the Airport in Frankfurt. The user is interested in traffic information and wants to find a time-optimized route.

Request

Bearer token
| Apikey
curl -H "Authorization: Bearer TOKEN_HERE" "https://wps.hereapi.com/v8/findsequence2?start=WiesbadenCentralStation;50.0715,8.2434&destination1=FranfurtCentralStation;50.1073,8.6647&destination2=DarmstadtCentralStation;49.8728,8.6326&destination3=FrankfurtAirport;50.0505,8.5698&destination4=HanauCentralStation;50.1218,8.9298&end=MainzCentralStation;50.0021,8.259&improveFor=time&departure=2014-12-09T09:30:00%2b01:00&mode=fastest;car;traffic:enabled"
curl "https://wps.hereapi.com/v8/findsequence2?start=WiesbadenCentralStation;50.0715,8.2434&destination1=FranfurtCentralStation;50.1073,8.6647&destination2=DarmstadtCentralStation;49.8728,8.6326&destination3=FrankfurtAirport;50.0505,8.5698&destination4=HanauCentralStation;50.1218,8.9298&end=MainzCentralStation;50.0021,8.259&improveFor=time&departure=2014-12-09T09:30:00%2b01:00&mode=fastest;car;traffic:enabled?apikey=APIKEY_HERE"

Response

{
    "results": [{
        "waypoints": [{
            "id": "WiesbadenCentralStation",
            "lat": 50.0715,
            "lng": 8.2434,
            "sequence": 0,
            "estimatedArrival": null,
            "estimatedDeparture": "2014-12-09T09:30:00+01:00",
            "fulfilledConstraints": []
        },
        {
            "id": "FranfurtCentralStation",
            "lat": 50.1073,
            "lng": 8.6647,
            "sequence": 1,
            "estimatedArrival": null,
            "estimatedDeparture": "2014-12-09T10:01:02+01:00",
            "fulfilledConstraints": []
        },
        {
            "id": "HanauCentralStation",
            "lat": 50.1218,
            "lng": 8.9298,
            "sequence": 2,
            "estimatedArrival": null,
            "estimatedDeparture": "2014-12-09T10:30:43+01:00",
            "fulfilledConstraints": []
        },
        {
            "id": "FrankfurtAirport",
            "lat": 50.0505,
            "lng": 8.5698,
            "sequence": 3,
            "estimatedArrival": null,
            "estimatedDeparture": "2014-12-09T10:56:10+01:00",
            "fulfilledConstraints": []
        },
        {
            "id": "DarmstadtCentralStation",
            "lat": 49.8728,
            "lng": 8.6326,
            "sequence": 4,
            "estimatedArrival": null,
            "estimatedDeparture": "2014-12-09T11:16:55+01:00",
            "fulfilledConstraints": []
        },
        {
            "id": "MainzCentralStation",
            "lat": 50.0021,
            "lng": 8.259,
            "sequence": 5,
            "estimatedArrival": null,
            "estimatedDeparture": null,
            "fulfilledConstraints": []
        }],
        "distance": "169262",
        "time": "8362",
        "interconnections": [{
            "fromWaypoint": "WiesbadenCentralStation",
            "toWaypoint": "FranfurtCentralStation",
            "distance": 36461.0,
            "time": 1862.0
        },
        {
            "fromWaypoint": "FranfurtCentralStation",
            "toWaypoint": "HanauCentralStation",
            "distance": 34485.0,
            "time": 1781.0
        },
        {
            "fromWaypoint": "HanauCentralStation",
            "toWaypoint": "FrankfurtAirport",
            "distance": 33489.0,
            "time": 1527.0
        },
        {
            "fromWaypoint": "FrankfurtAirport",
            "toWaypoint": "DarmstadtCentralStation",
            "distance": 26905.0,
            "time": 1245.0
        },
        {
            "fromWaypoint": "DarmstadtCentralStation",
            "toWaypoint": "MainzCentralStation",
            "distance": 37922.0,
            "time": 1947.0
        }],
        "description": "Targeted best time; with improvement for traffic"
    }],
    "processingTimeDesc": "1345ms",
    "responseCode": "200",
    "warnings": null,
    "requestId": null
}

Next steps

To learn how to construct a request, see Constructing a request. For a sample request, see Car route with a waypoints sequence optimized by traffic information. For further examples, see Examples. For the terms and conditions covering this documentation, see the HERE Documentation License.

results matching ""

    No results matching ""