Returns travel costs for a given Appointment.

Parameters

id

The ID of the Appointment.

Example

FM_api('Appointment_calculateTravel', ['id' => '1']);

On Success

{"duration":667,"distance":9208,"last_job":"1","next_duration":"600","next_distance":"9000"}