-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Targomo core server is about to have a change on Time service response content from version
0.2.31 and we need to adapt the java client to be able to process the change as it will slightly affect the JSON output.
On previous versions, the "travelTime" value between each source and target could represent either the time or distance according to the "edgeWeight" request attribute.
To reduce the confusion, we decided to create a separate attribute on response called "length" that will contain the distance between both points. The "travelTime" attribute will then always return the time taken to traverse between both points according to the selected "edgeWeigth"
Below is an example of the new output format for time service when a source and a target is provided and there is a route between them below the "maxEdgeWeight" value
{
"data": [
{
"id": "POI:0",
"targets": [
{
"id": "Home 1",
"travelTime": 11377,
"length": 285490
}
]
}
],
"code": "ok",
"message": "",
"requestTime": "209"
}