Getting order track
Getting order track
Request
POST
https://fleet-api.taxi.yandex.net/v1/parks/orders/track
Query parameters
|
Name |
Description |
|
order_id* |
Type: string Order ID Example: |
|
park_id* |
Type: string Partner ID Example: |
Headers
|
Name |
Description |
|
X-API-Key* |
Type: string API-key Example: Min length: |
|
X-Client-ID* |
Type: string Client ID Example: Min length: |
Responses
200 OK
A track of an order
Body
application/json
{
"track": [
{
"tracked_at": "2020-09-10T13:37:00+00:00",
"location": {
"lat": 55.751244,
"lon": 37.618423
},
"speed": 17,
"order_status": "waiting",
"direction": 342,
"distance": 323.35060609
}
]
}
|
Name |
Description |
|
track* |
Type: OrderTrackPoint[] |
OrderTrackPoint
|
Name |
Description |
|
location* |
Type: TrackLocation Location |
|
tracked_at* |
Type: string<date-time> Point tracking time Example: |
|
direction |
Type: number Direction. Angle from 0 degrees to 360 degrees from north direction, clockwise. 0 - north, 90 - east, 180 - south, 270 - west Example: Min value: Max value: |
|
distance |
Type: number<double> Distance traveled from the first point of the track in meters Example: Min value: |
|
order_status |
Type: TrackOrderStatus Order status at the point. Allowed values:
Example: Enum: |
|
speed |
Type: number<double> Speed in meters per second Example: Min value: |
TrackLocation
Location
|
Name |
Description |
|
lat* |
Type: number<double> Latitude in degrees Example: Min value: Max value: |
|
lon* |
Type: number<double> Longitude in degrees Example: Min value: Max value: |
TrackOrderStatus
Order status at the point. Allowed values:
driving- en route to start point;waiting- is waiting at start point;transporting- is on the ride.
|
Type |
Description |
|
Example: Enum: |
400 Bad Request
Invalid request parameters
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
401 Unauthorized
Request authorization parameters are missing
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
403 Forbidden
Insufficient rights to execute the request
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
404 Not Found
Requested resource was not found
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
429 Too Many Requests
Limit of requests was exceeded
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
500 Internal Server Error
Internal server error
Body
application/json
{
"code": "string",
"message": "Textual description of the error"
}
|
Name |
Description |
|
message* |
Type: string Human-readable error message Example: |
|
code |
Type: string Machine-readable error code |
No longer supported, please use an alternative and newer version.