Bus Boarding Point

This method gives the list of boarding and their respective boarding times, landmark, complete address and contact numbers for the specified route.

Parameters

Name

Description

Accept

string

( header )

Must be application/json

Accept - Encoding

string

( header )

Must be gzip

Authorization

string

( header )

Must be Your PID

Must be Your API Key

Customer-Ip

string

( header )

Must be IP address of the customer, as captured by your integration. Send IPV4 addresses only.

Ensure your integration passes the customer’s IP, not your own. This value helps determine their location and other settings.

Also used for fraud recovery and other important analytics.

Definition and request parameters for Bus Boarding Points Method

action

string

( query )

Must be "getBoardingPoints" as parameter

Action methods in Web API controller can have one or more parameters of different types. It can be either primitive type or complex type. Web API binds action method parameters either with URL's query string or with request body depending on the parameter type.

ResultIndex

string

( query )

ResultIndex

TraceId

string

( query )

Unique identifier for identify every unique search

REQUEST

API Endpoint: https://www.abengines.com/api/v1/travel-api/bus/

header: array(
'Content-Type:application/json',
'Accept-encoding: gzip',
'PID:'ADD-YOUR-KEY',
'x-api-key:'ADD-YOUR-KEY'
);

POST:
{
  "action": "getBoardingPoints",
  "mode": "Test",
  "ResultIndex": "8",
  "TraceId": "7a0cec5d-aba2-44be-9921-23ee94a93bb7"
}
					 

Response

The API returns an HTTP response, which generally includes the result of the request invocation

{
    "status": "200",
    "status_message": "OK",
    "responseData": {
        "GetBusRouteDetailResult": {
            "ResponseStatus": 1,
            "Error": {
                "ErrorCode": 0,
                "ErrorMessage": ""
            },
            "TraceId": "7a0cec5d-aba2-44be-9921-23ee94a93bb7",
            "BoardingPointsDetails": [
                {
                    "CityPointAddress": "Kukatpalli, testing",
                    "CityPointContactNumber": "99999999999999",
                    "CityPointIndex": 1,
                    "CityPointLandmark": "kukatpalli,Testing",
                    "CityPointLocation": "Abids",
                    "CityPointName": "Abids",
                    "CityPointTime": "2023-09-11T20:00:00"
                }
            ],
            "DroppingPointsDetails": [
                {
                    "CityPointIndex": 1,
                    "CityPointLocation": "Koramangala",
                    "CityPointName": "Koramangala",
                    "CityPointTime": "2023-09-12T06:00:00"
                }
            ]
        }
    }
}