Travel Portal Development, Travel Portal Solution, Travel Whitelabel

Geographical Location Search

The Geography APIs provide you with access to geographic definitions and property mappings for over 600,000 regions and airports. Returns the geographic definition and property mappings of regions matching the specified parameters as a paginated response.

Parameters

Name

Description

Accept

string

( header )

*required application/json

Accept - Encoding

string

( header )

*required gzip

Authorization

string

( header )

*required Your API Key

*required Your PID Key

Customer-Ip

string

( header )

*required 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 Destination Method

action

string

( query )

*required "getLocations" as a parameter

term

string

( query )

*required Relevent regions.

Specific information about the region e.g. whether it covers surrounding areas for a city. Only present when relevant for a region.

REQUEST

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

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

GET: https://www.abengines.com/api/v1/travel-api/bus/?action=getLocations&term=delhi
					 

Response

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

{
    "bus": [
        {
            "CityName": "Delhi",
            "category": "bus",
            "search_type": "CityId",
            "CityId": "230"
        },
        {
            "CityName": "Delhi 1 day Tour",
            "category": "bus",
            "search_type": "CityId",
            "CityId": "8137"
        },
        {
            "CityName": "Delhi Airport",
            "category": "bus",
            "search_type": "CityId",
            "CityId": "3898"
        },
        {
            "CityName": "Delhi Cantt,Delhi",
            "category": "bus",
            "search_type": "CityId",
            "CityId": "14542"
        },
        {
            "CityName": "Delhi Darshan",
            "category": "bus",
            "search_type": "CityId",
            "CityId": "5415"
        }
    ]
}
-->