-
Notifications
You must be signed in to change notification settings - Fork 0
Travelyaari Bus Chart API
SoumyaSian edited this page Oct 30, 2017
·
4 revisions
bus_chart
KEYWORD | DESCRIPTION |
---|---|
FROM_CITY_ID | pick-up city name |
TO_CITY_ID | destination city name |
JOURNEY_DATE | date of the journey |
ROUTE_BUS_ID | route Id of bus |
{
"fromCityId" : "$FROM_CITY_ID",
"toCityId" : "$TO_CITY_ID",
"journeyDate" : "$JOURNEY_DATE",
"routeBusId" : "$ROUTE_BUS_ID",
}
KEY | DESCRIPTION |
---|---|
CHART_LAYOUT | Object which the information about the layout of the seats available |
CHART_LAYOUT.INFO | Object gives the information about the total count of the seats and layout |
CHART_LAYOUT.INFO.TOTAL_SEMI_SLEEPER | Total number of the semi sleeper seats |
CHART_LAYOUT.INFO.TOTAL_SLEEPER | Total number of the sleeper seats |
CHART_LAYOUT.INFO.TOTAL_SEATER | Total number of the seaters |
CHART_LAYOUT.INFO.TOTAL_SEATES | Total number of the seates |
CHART_LAYOUT.INFO.DECKS | Total number of decks available |
CHART_LAYOUT.INFO.LOWER | Object gives the maximum number of columns and rows in the lower deck |
CHART_LAYOUT.INFO.LAYOUT_NAME | Name of the layout name |
CHART_LAYOUT.LAYOUT | Object containing the lower and upper deck information |
CHART_LAYOUT.LAYOUT.LOWER | Object which has all the information about lower deck seats available |
CHART_LAYOUT | Object which the information about the layout of the seats available |
CHART_LAYOUT.INFO | Object gives the information about the total count of the seats and layout |
CHART_LAYOUT.INFO.TOTAL_SEMI_SLEEPER | Total number of the semi sleeper seats |
CHART_LAYOUT.INFO.TOTAL_SLEEPER | Total number of the sleeper seats |
CHART_LAYOUT.INFO.TOTAL_SEATER | Total number of the seaters |
CHART_LAYOUT.INFO.TOTAL_SEATES | Total number of the seates |
CHART_LAYOUT.INFO.DECKS | Total number of decks available |
CHART_LAYOUT.INFO.LOWER | Object gives the maximum number of columns and rows in the lower deck |
CHART_LAYOUT.INFO.LAYOUT_NAME | Name of the layout name |
CHART_LAYOUT.LAYOUT | Object containing the lower and upper deck information |
CHART_LAYOUT.LAYOUT.LOWER | Object which has all the information about the lower deck |
CHART_LAYOUT.LAYOUT.UPPER | Object which has all the information about the upper deck |
CHART_LAYOUT.LAYOUT.LOWER.SEQ_NO | Sequence number of the lower deck seat |
CHART_LAYOUT.LAYOUT.LOWER.ROW | Row of the lower deck |
CHART_LAYOUT.LAYOUT.LOWER.COL | Column of the lower deck |
CHART_LAYOUT.LAYOUT.LOWER.WIDTH | Width of the lower deck |
CHART_LAYOUT.LAYOUT.LOWER.HEIGHT | Height of the lower deck |
CHART_LAYOUT.LAYOUT.LOWER.SEAT_TYPE | Type of the seat. Seat Type can be 1.Seating 2.Sleeper 3.Semi Sleeper |
CHART_LAYOUT.LAYOUT.UPPER | Object which has all the information about the upper deck |
CHART_LAYOUT.LAYOUT.UPPER.SEQ_NO | Sequence number of the lower deck seat |
CHART_LAYOUT.LAYOUT.UPPER.ROW | Row of the lower deck |
CHART_LAYOUT.LAYOUT.UPPER.COL | Column of the lower deck |
CHART_LAYOUT.LAYOUT.UPPER.WIDTH | Width of the lower deck |
CHART_LAYOUT.LAYOUT.UPPER.HEIGHT | Height of the lower deck |
CHART_LAYOUT.LAYOUT.UPPER.SEAT_TYPE | Type of the seat. Seat Type can be 1.Seating 2.Sleeper 3.Semi Sleeper |
CHART_SEATS | Contains all seat_no of the Layout. ChartSeats is an array. A seat’s seat_no which is string, can be get using seq_no like this seat_no = ChartLayout.ChartSeats[seq_no] |
SEAT_STATUS.STATUS | Status of the seats it can be 0 : Not Available, 1: Available for all, 2: Available only for male, 3: Available only for female,-2: Booked by male, -3: Booked by female |
FARES | Array containing array of fares |
UNIQ_FARES | Uniq fares in the fares array |
PROFILER | Name of the profiler |
PICKUPS | Array of the selected pick up location with all the information |
DROPOFFS | Array of drop off location with all the information |
AVAILSEATS | Array of with lower and upper available seats |
[
{
"chartLayout": {
"Info": {
"TotalSleeper": $TOTAL_SLEEPER ,
"TotalSemiSleeper": $TOTAL_SEMI_SLEEPER
"TotalSeater": $TOTAL_SEATER,
"TotalSeats": $TOTAL_SEATES,
"Decks": $DECKS,
"Lower": {
"MaxRows": $MAX_ROWS,
"MaxCols": $MAX_COLUMNS
},
"Upper": {
"MaxRows": $MAX_ROWS,
"MaxCols": $MAX_COLUMNS
},
"LayoutName": "$LAYOUT_NAME"
},
"Layout": {
"Lower": [
[
$SEQ_NO,
$ROW,
$COL,
$WIDTH,
$HEIGHT,
$SEAT_TYPE
] ...,
],
"Upper": [
[
$SEQ_NO,
$ROW,
$COL,
$WIDTH,
$HEIGHT,
$SEAT_TYPE
]..,
]
}
},
"chartSeats": {
"Seats": [
$SEATS...,
]
},
"seatsStatus": {
"Status": [
$SEAT_STATUS...,
],
"Fares": [
[
$TOTAL_FARE,
$BASE_FARE,
0,
0,
0,
0
]...,
],
"UniqFares": [
$UNIQ_FARES
],
"profiler": "$PROFILER"
},
"pickups": [
{
"Contact": "$CONTACT",
"Landmark": "$LANDMARK",
"Address": "$ADDRESS",
"PickupTime": "$PICKUP_TIME",
"PickupArea": "$PICKUP_AREA",
"PickupName": "$PICKUP_NAME",
"PickupCode": "$PICKUP_CODE"
}...,
],
"dropoffs": [
{
"Contact": "$CONTACT",
"Landmark": "$LANDMARK",
"Address": "$ADDRESS",
"DropoffTime": "$DROPOFF_TIME",
"DropoffArea": "$DROPOFF_AREA",
"DropoffName": "$DROPOFF_NAME",
"DropoffCode": "$DROPOFF_CODE"
}
],
"availSeats": {
"Upper": $UPPER,
"Lower": $LOWER
}
}
]
Some error messages, you might get for an invalid search request. The HTTP response code in this case will be 400.
Status | Error message | Description |
---|---|---|
400 | fromCityId | From City Id is missing. |
400 | toCityId | From City Id is missing. |
400 | busRouteId | Bus Route id is missing. |
400 | journeyDate | Journey Date is missing. |