Quick Start - HERE developer portal

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

Note

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

Get a HERE Account

If you are an individual developer who has signed up for one of the plans listed on our Developer plans page on developer.here.com., you received a HERE account ID when you signed up. You can use your HERE account to log in to developer.here.com. to create applications. Applications (uniquely identified by an app ID) enable development with HERE products and services.

Register your App

To register your app, follow these steps:

  1. Sign in to developer.here.com.
  2. Click your name, select Projects, and then choose your project from the list. Your project details and available application credentials are then displayed.
  3. Select JavaScript or REST and click Generate App. When your application is created, its app ID is displayed.

Get an API key

To get an API key, follow these steps:

  1. Sign in to developer.here.com.
  2. Click your name, select Projects, and then choose your project from the list. Your project details and available application credentials are then displayed.
  3. Click Create API key to generate a maximum of two API keys for your application. 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

https://wse.ls.hereapi.com/2/findsequence.json
?apiKey=\{YOUR\_API\_KEY\}
&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;

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"
    }],
    "errors": [],
    "processingTimeDesc": "1345ms",
    "responseCode": "200",
    "warnings": null,
    "requestId": null
}

results matching ""

    No results matching ""