Last active
January 4, 2021 14:17
-
-
Save bludnic/dc6d85ed6284b0f17ba162101c883724 to your computer and use it in GitHub Desktop.
Carpool: Create trip body
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"waypoints": [ | |
{ "cityId": 625144, "stops": [{ "name": "Минский вокзал" }] }, | |
{ "cityId": 625743, "stops": [{ "name": "Лепельский вокзал" }] }, | |
{ "cityId": 620127, "stops": [{ "name": "Витебский вокзал" }] }, | |
{ "cityId": 625665, "stops": [{ "name": "Могилевский вокзал" }] } | |
], | |
"legs": [ | |
{ "fromCityId": 625144, "toCityId": 625665, "price": 730 }, | |
{ "fromCityId": 620127, "toCityId": 625665, "price": 310 }, | |
{ "fromCityId": 625144, "toCityId": 625743, "price": 300 }, | |
{ "fromCityId": 625743, "toCityId": 620127, "price": 230 } | |
], | |
"departure": "2021-01-15T14:09:00Z", | |
"capacity": [{ "type": "passenger", "capacity": 16 }], | |
"currency": "RUB", | |
"carId": 7, | |
"options": { "instantBooking": true } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment