Skip to content

API endpoints and outputs

Abhinav SInha edited this page Jun 20, 2015 · 22 revisions

========================================================= TRAVEL

/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': ''
  },  
]
Clone this wiki locally