update_retranslation_property

To update the retranslation_property of the unit, use the unit/update_retranslation_property method:

Copied!
svc=unit/update_report_settings&params={
  "itemId": <long>,
  "params": {
    "speedLimit": <uint>,
    "maxMessagesInterval": <uint>,
    "dailyEngineHoursRate": <uint>,
    "urbanMaxSpeed": <uint>,
    "mileageCoefficient": <double>,
    "fuelRateCoefficient": <double>,
    "maxDistanceBetweenCoordinates": <uint>,
    "maxMessagesSpeed": <uint>,
    "speedingTolerance": <uint>,
    "speedingMinDuration": <uint>,
    "speedingMode": <uint>
  }
}

Parameters

The request must contain the following parameters:

Parameter Description
itemId Unit ID.
route_data Object with route parameters.
vehicle_type Type of vehicle. Possible values:
  • bus
  • trolleybus
  • tramway
  • minibus
  • tram
  • route taxi
route Represent route.

Example

Below is an example of the unit/update_retranslation_property request:

Copied!
svc=unit/update_retranslation_property&params={"itemId":814743,"route_data":{"vehicle_type":"bus","route":"Somebody%20told%20me"}}

Response

If the request is completed successfully, a response in the following format is returned:

Copied!
{
  "vehicle_type": "bus",
  "route": "Somebody%20told%20me"
}

Otherwise, an error code is returned.

Error codes

Error code Description
4 Wrong input parameters.
6 Failed to update parameters.
7 No ADF_ACL_ITEM_EDIT_OTHER access right to the unit.

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form

Download PDF file
Download Word document

See also