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.

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.

apiKey

string

( query )

Must be a valid API Key

The API Key provided to you is critical to the security of your request data – treat it like a password. Never include the raw value in any publicly accessible site or app code. You will be provided with an API key when you are approved to integrate TPS API.

mode

string

( query )

Must be either "Test" or "LIVE"

Your application must be approved from Adivaha Personnel. All the transactions will be treated as LIVE once the parameter is set to LIVE.

requestBody

array

( query )

Must be an array with the following parameters

ResultIndex

string

( query )

ResultIndex

TraceId

string

( query )

Unique identifier for identify every unique search

REQUEST

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

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": "1",
  "TraceId": "bac4418f-5641-4256-ab47-5c262cfe5bb9"
}
					 

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": "bac4418f-5641-4256-ab47-5c262cfe5bb9",
            "BoardingPointsDetails": [
                {
                    "CityPointAddress": "test",
                    "CityPointContactNumber": "0099988899",
                    "CityPointIndex": 1,
                    "CityPointLandmark": "test",
                    "CityPointLocation": "Domlur I Stage",
                    "CityPointName": "Domlur I Stage (Pickup Bus)",
                    "CityPointTime": "2021-09-09T01:00:00"
                }
            ],
            "DroppingPointsDetails": [
                {
                    "CityPointIndex": 1,
                    "CityPointLocation": "Anand Bagh",
                    "CityPointName": "Anand Bagh",
                    "CityPointTime": "2021-09-09T21:00:00"
                }
            ]
        }
    }
}