Skip to content

Make a planning request

{
  "type": "planTrip",
  "payload": {
    "fromPlace": "52.0894,5.1102",
    "toPlace": "52.0925,5.1813",
    "arriveBy": true,
    "timeSlack": 0,
    "timestamp": "2026-09-21T10:00:00.000Z"
  }
}

This asks for Utrecht Centraal → Utrecht Science Park, arriving around 10:00 on the next weekday. The example fills in the travel date automatically.

To…Add…
Allow two extra minutes to transfertransferSlack: 120
Prefer less walkinglessWalking: true
Use a slower walking paceuserPreferences: { walkingSpeed: "SLOW" }
Include faresincludePricing: true
Explore flexible transportuseFlexibleRouting: true
Exclude train journeysexcludeModes: ["RAIL"]

Use the recipe explorer to generate a complete request with these settings.

For JSON, send the whole envelope above as a text message. For Protobuf, encode only the payload as planner.PlanRequest and send it as a binary message.

Request field reference · Working client example