-
Notifications
You must be signed in to change notification settings - Fork 0
API endpoints and outputs
Abhinav SInha edited this page Jun 20, 2015
·
22 revisions
/api/travel/cabs(POST) +parameters(lat, lng)
output=:
[
{
'provider': 'provider_name',
'time_of_arrival': 'time in minutes',
'price_per_km': 'price in INR/Km',
'display_name': 'Black/X/GO',
'min_price': 'minimum_price',
},
]
/api/travel/bus(POST) +parameters(src, dest, day)
output=:
[
{
'origin': '',
'destination': '',
'seat': '',
'duration': '',
'condition': '',
'fare': '',
'bustype': '',
'travelagency': '',
'arrdate': '',
'depdate': ''
},
]
/geo +parameters(location)
output=:
[
{
"country": "India",
"city": "Rohini Sector 28, New Delhi",
"area": "Delhi",
"PLZ": "110042",
"street": "",
"house_no": "",
"POI": "",
"type": "15",
"phone": "",
"lng": 77.10420727729797,
"lat": 28.7578307662807,
"formatted_address": "Rohini Sector 28, New Delhi, Delhi 110042, India"
},
]
/api/travel/flight +parameters(lat, lng)
output=:
[
{
"origin": "DEL",
"fare": 5996,
"flightnum": "153",
"warnings": "Refundable",
"destination": "BOM",
"duration": "2h 5m",
"airline": "spicejet",
"seatingclass": "E",
"depdate": "2015-06-23t0840",
"arrdate": "2015-06-23t1045"
},
]