GET api/Route?date={date}&time={time}&slat={slat}&slng={slng}&tlat={tlat}&tlng={tlng}&modes={modes}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
date | string |
Required |
|
time | string |
Required |
|
slat | string |
Required |
|
slng | string |
Required |
|
tlat | string |
Required |
|
tlng | string |
Required |
|
modes | string |
Required |
Body Parameters
None.
Response Information
Resource Description
MessageName | Description | Type | Additional information |
---|---|---|---|
result | boolean |
None. |
|
error |
None. |
Response Formats
application/json, text/json
Sample:
{ "result": true, "error": { "code": "sample string 1", "message": "sample string 2", "timestamp_request": "sample string 3", "http_request": "sample string 4", "response_code": "sample string 5", "response_description": "sample string 6", "id_request": "sample string 7", "http_method": "sample string 8", "request_type": "sample string 9", "ip_client": "sample string 10", "user_agent": "sample string 11", "duration": "sample string 12", "params": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "rp_message": { "error": [ 0, 0 ] } }, "data": [ { "legs": [ { "transport": { "travel_mode": "sample string 1", "long_name": "sample string 2", "short_name": "sample string 3", "ride_id": "sample string 4", "driver_id": "sample string 5", "ride_name": "sample string 6", "route_url": "sample string 7", "agency_id": "sample string 8", "route_id": "sample string 9", "trip_id": "sample string 10", "trip_headsign": "sample string 11", "availability": "sample string 12", "route_color": "sample string 13", "route_text_color": "sample string 14", "shape_id": "sample string 15", "route_shape": "sample string 16" }, "route": { "points": [ { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" }, { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" } ] }, "distance": "sample string 1", "stops": "sample string 2", "duration": "sample string 3", "waiting_time": "sample string 4", "departure_time": "sample string 5" }, { "transport": { "travel_mode": "sample string 1", "long_name": "sample string 2", "short_name": "sample string 3", "ride_id": "sample string 4", "driver_id": "sample string 5", "ride_name": "sample string 6", "route_url": "sample string 7", "agency_id": "sample string 8", "route_id": "sample string 9", "trip_id": "sample string 10", "trip_headsign": "sample string 11", "availability": "sample string 12", "route_color": "sample string 13", "route_text_color": "sample string 14", "shape_id": "sample string 15", "route_shape": "sample string 16" }, "route": { "points": [ { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" }, { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" } ] }, "distance": "sample string 1", "stops": "sample string 2", "duration": "sample string 3", "waiting_time": "sample string 4", "departure_time": "sample string 5" } ], "count_pt": 1, "trip_duration": 2.1, "trip_distance": 3.1, "info": "sample string 4" }, { "legs": [ { "transport": { "travel_mode": "sample string 1", "long_name": "sample string 2", "short_name": "sample string 3", "ride_id": "sample string 4", "driver_id": "sample string 5", "ride_name": "sample string 6", "route_url": "sample string 7", "agency_id": "sample string 8", "route_id": "sample string 9", "trip_id": "sample string 10", "trip_headsign": "sample string 11", "availability": "sample string 12", "route_color": "sample string 13", "route_text_color": "sample string 14", "shape_id": "sample string 15", "route_shape": "sample string 16" }, "route": { "points": [ { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" }, { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" } ] }, "distance": "sample string 1", "stops": "sample string 2", "duration": "sample string 3", "waiting_time": "sample string 4", "departure_time": "sample string 5" }, { "transport": { "travel_mode": "sample string 1", "long_name": "sample string 2", "short_name": "sample string 3", "ride_id": "sample string 4", "driver_id": "sample string 5", "ride_name": "sample string 6", "route_url": "sample string 7", "agency_id": "sample string 8", "route_id": "sample string 9", "trip_id": "sample string 10", "trip_headsign": "sample string 11", "availability": "sample string 12", "route_color": "sample string 13", "route_text_color": "sample string 14", "shape_id": "sample string 15", "route_shape": "sample string 16" }, "route": { "points": [ { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" }, { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" } ] }, "distance": "sample string 1", "stops": "sample string 2", "duration": "sample string 3", "waiting_time": "sample string 4", "departure_time": "sample string 5" } ], "count_pt": 1, "trip_duration": 2.1, "trip_distance": 3.1, "info": "sample string 4" } ], "bad": [ { "legs": [ { "transport": { "travel_mode": "sample string 1", "long_name": "sample string 2", "short_name": "sample string 3", "ride_id": "sample string 4", "driver_id": "sample string 5", "ride_name": "sample string 6", "route_url": "sample string 7", "agency_id": "sample string 8", "route_id": "sample string 9", "trip_id": "sample string 10", "trip_headsign": "sample string 11", "availability": "sample string 12", "route_color": "sample string 13", "route_text_color": "sample string 14", "shape_id": "sample string 15", "route_shape": "sample string 16" }, "route": { "points": [ { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" }, { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" } ] }, "distance": "sample string 1", "stops": "sample string 2", "duration": "sample string 3", "waiting_time": "sample string 4", "departure_time": "sample string 5" }, { "transport": { "travel_mode": "sample string 1", "long_name": "sample string 2", "short_name": "sample string 3", "ride_id": "sample string 4", "driver_id": "sample string 5", "ride_name": "sample string 6", "route_url": "sample string 7", "agency_id": "sample string 8", "route_id": "sample string 9", "trip_id": "sample string 10", "trip_headsign": "sample string 11", "availability": "sample string 12", "route_color": "sample string 13", "route_text_color": "sample string 14", "shape_id": "sample string 15", "route_shape": "sample string 16" }, "route": { "points": [ { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" }, { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" } ] }, "distance": "sample string 1", "stops": "sample string 2", "duration": "sample string 3", "waiting_time": "sample string 4", "departure_time": "sample string 5" } ], "count_pt": 1, "trip_duration": 2.1, "trip_distance": 3.1, "info": "sample string 4" }, { "legs": [ { "transport": { "travel_mode": "sample string 1", "long_name": "sample string 2", "short_name": "sample string 3", "ride_id": "sample string 4", "driver_id": "sample string 5", "ride_name": "sample string 6", "route_url": "sample string 7", "agency_id": "sample string 8", "route_id": "sample string 9", "trip_id": "sample string 10", "trip_headsign": "sample string 11", "availability": "sample string 12", "route_color": "sample string 13", "route_text_color": "sample string 14", "shape_id": "sample string 15", "route_shape": "sample string 16" }, "route": { "points": [ { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" }, { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" } ] }, "distance": "sample string 1", "stops": "sample string 2", "duration": "sample string 3", "waiting_time": "sample string 4", "departure_time": "sample string 5" }, { "transport": { "travel_mode": "sample string 1", "long_name": "sample string 2", "short_name": "sample string 3", "ride_id": "sample string 4", "driver_id": "sample string 5", "ride_name": "sample string 6", "route_url": "sample string 7", "agency_id": "sample string 8", "route_id": "sample string 9", "trip_id": "sample string 10", "trip_headsign": "sample string 11", "availability": "sample string 12", "route_color": "sample string 13", "route_text_color": "sample string 14", "shape_id": "sample string 15", "route_shape": "sample string 16" }, "route": { "points": [ { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" }, { "address": "sample string 1", "point": { "lat": "sample string 1", "lon": "sample string 2" }, "date": "sample string 2", "stop_id": "sample string 3", "departure_time": "sample string 4" } ] }, "distance": "sample string 1", "stops": "sample string 2", "duration": "sample string 3", "waiting_time": "sample string 4", "departure_time": "sample string 5" } ], "count_pt": 1, "trip_duration": 2.1, "trip_distance": 3.1, "info": "sample string 4" } ] }
application/xml
Sample:
text/xml
Sample: