Skip to main content

Route optimization

Send a route optimization to API MPT; you will have to first send a SDK_ENTITIES message.

When the calculation is launched, in progress or finished, some messages will be sent by the SDK

  • JOB_PROGRESS to follow the calculation progression, until it is finished
  • SDK_ENTITIES entities updated by the calculation solution (in order to synchronize the data in the application).

Headers

  • type : RUN_MPT
  • author : client Id as provided in the ìnitialisation message
  • recipients : SDK Id as provided in the ìnitialisation message
  • status : SENT

payload

Example

Example of route optimization
{
"type": "RUN_MPT",
"payload": {
"type": "OPTIMIZE_EXISTING_ROUTES",
"routes": [
"<Route id>"
]
},
"author": "<author id>",
"recipients": [
"<recipient id>"
],
"status": "SENT"
}