Skip to content
Wysp Docs

state.delta

Changes to be merged into the in-memory state object

type: object

NameTypeRequiredDescription
languagesstring[]noArray of languages spoken by User, in order of descending preference.
unitSystemstringnoPreferred unit system for measurements
givenNamestringnoThe given name (aka first name / forename / casual spoken name) of the user.
travelModestringnoPreferred travel mode
destinationsobject[]noCurrent destinations for the user
planobject | nullno
geometryobjectnoGeoJSON describing the user’s current position and planned routes.
statementsobject[]noPlanned statements for the user
toolAvailabilitiesstring[]noList of Tool IDs, for tools that are currently available and relevant
serverobjectnoMetadata about the current state of the server from the user’s perspective
{
"kind": "state.delta",
"data": {
"languages": [
"en-US",
"nb-NO"
],
"unitSystem": "LOCAL",
"givenName": "Marius",
"travelMode": "FOOT",
"destinations": [
{
"name": "Home"
}
],
"plan": {
"durationSeconds": 852,
"distanceMeters": 600
},
"geometry": {
"fix": null,
"triggers": {},
"routeLines": [],
"routePoints": []
},
"statements": [
{
"id": "c04dd717-7e2c-434d-8d31-2f7268e5b51b",
"transcript": "Turn left at the roundabout.",
"locale": "en-US",
"clipId": "18905e54-0091-4e3a-90f7-58d1dcecb913",
"trigger": {
"kind": "LOCATION",
"lat": 37.7749,
"lng": -122.4194,
"heading": 90
}
}
],
"toolAvailabilities": [
"string"
],
"server": {
"isPlanning": false,
"errorMessage": null,
"dataAvailability": "FULL"
}
}
}