Pushes courier positions from client
Pushes courier positions to the database for tracking.
HTTP Request
POST https://courier.yandex.ru/api/v1/couriers/{courier_id}/routes/{route_id}/push-positions-v3\
?apikey={string}
Path Parameters
courier_id * | integer The ID of the courier that is used in requests to the Track & Trace API. |
route_id * | integer The ID of the route that is used in requests to the Track & Trace API. |
* Required parameter
Query Parameters
* Required parameter
Request Body
{ "positions": [ { "accuracy": integer, "heading": integer, "point": { "lat": number, "lon": number }, "speed": number, "timestamp": integer } ] }
Copied to clipboard
Representation
Fields
positions[] * | array |
positions[]. | integer GPS accuracy in meters. |
positions[]. | integer Direction toward true North, in degrees. Not supported yet. |
positions[]. | object |
positions[]. | number Location latitude. |
positions[]. | number Location longitude. |
positions[]. | number Instantaneous velocity. Not supported yet. |
positions[]. | integer Timestamp of the courier position in UTC (in seconds). Minimum value: |
positions[] * | array |
positions[]. | integer GPS accuracy in meters. |
positions[]. | integer Direction toward true North, in degrees. Not supported yet. |
positions[]. | object |
positions[]. | number Location latitude. |
positions[]. | number Location longitude. |
positions[]. | number Instantaneous velocity. Not supported yet. |
positions[]. | integer Timestamp of the courier position in UTC (in seconds). Minimum value: |
* Required parameter
Responses
Code 200
Data was saved.
Code 403
You do not have access to this object.
Code 404
No object found.
Code 422
Incorrect input.