_calculateTravel

Get Travel data based on Appointments

Parameters

ids

The IDs of the appointments which the travel will be calulated for.

Example

FM_api('Appointments_calculateTravel', ['ids' => ['1', '2', '3']])

Result

On Success

[
	[1,{"duration":382,"distance":2076,"last_job":1,"next_duration":382,"next_distance":2081}],
	[2,{"prev_id":135,"duration":178,"distance":873,"last_job":1,"next_duration":359,"next_distance":1941}],
	[3,{"duration":236,"distance":1447,"last_job":1,"next_duration":236,"next_distance":1452}]
]

Last updated