Arrival forecast

 
Example:
https://<address>/api/api.php?cmd=route
 
Parameter:
cmd : route
mode: transport type, one of:
bicycle - bicycle
bus - bus
car - car
pedestrian - pedestrian
scooter _
taxi - taxi
truck - cargo
origin : origin coordinates
destination : coordinates of the destination
 
Metod: GET
Request:
https://<address>/api/api.php?cmd=route&mode=bus&origin=47.211908,39.613767&destination=47.201699,39.668183
 
Answer :
{
 code: 0
 data: {
 "routes": [
 {
 "id": "6b3cfcb5-604f-4c4d-9045-587feb23d076",
 "sections": [
 {
 "id": "962be21f-62eb-46bd-9e1a-231af0d0c345",
 "type": "vehicle",
 "departure": {
 "time": "2021-09-19T00:31:56+03:00",
 "place": {
 "type": "place",
 location: {
 "lat": 47.2119,
 lng: 39.61372
 },
 "originalLocation": {
 "lat": 47.211908,
 lng: 39.613767
 }
 }
 },
 "arrival": {
 "time": "2021-09-19T00:40:25+03:00",
 "place": {
 "type": "place",
 location: {
 "lat": 47.2017113,
 lng: 39.668221
 },
 "originalLocation": {
 "lat": 47.201699,
 lng: 39.668183
 }
 }
 },
 summary: {
 duration: 509
 "length": 4886
 baseDuration: 443
 },
 transport: {
 "mode": "bus"
 }
 }