Skip to main content

Get Cabs With Fares

This resource is useful when you want to show the price a taxi company might charge for a given pickup and drop off address. This API takes latitude and longitudes as input and calculates the distance and price.

Endpoint
POST /api/CalculateFareWithVehicleTypes
Body
{
"CustomerTelNumber": "03332525495",
"PickupLatitude": "53.6412215",
"PickupLongitude": "-1.7852460",
"PickupPostalCode": "BD18 1QG",
"DropoffLatitide": "53.7839618",
"DropoffLongitude": "-1.7350702",
"DropoffPostalCode": "BD9 5ET",
}
Example Response
{
"Message": "",
"DevMessage": "",
"Content": [
{
"Name": "Saloon",
"Description": "",
"ViewOrder": 1,
"AdditionalCost": 0,
"NumberOfSeats": 4,
"CategoryName": "",
"TypeCategoryID": 1,
"IsPercentage": false,
"Cost": 0,
"CostPercent": 0,
"ActiveImage1": "",
"ActiveImage2": "",
"ActiveImage3": "",
"InactiveImage1": "",
"InactiveImage2": "",
"InactiveImage3": "",
"VehicleTypeId": 15,
"JourneyCost": 8.3,
"Fare": 8.3,
"Distance": 3.05,
"isPriceZone": false,
"tariffType": "T2",
"tariffTypeId": 319,
"farecolor": "Red",
"fairType": 3,
"PricingInfo": ""
},
{
"Name": "Hatchback",
"Description": "",
"ViewOrder": 2,
"AdditionalCost": 0,
"NumberOfSeats": 4,
"CategoryName": "Standard",
"TypeCategoryID": 1,
"IsPercentage": false,
"Cost": 5,
"CostPercent": 0,
"ActiveImage1": "",
"ActiveImage2": "",
"ActiveImage3": "",
"InactiveImage1": "",
"InactiveImage2": "",
"InactiveImage3": "",
"VehicleTypeId": 16,
"JourneyCost": 13.3,
"Fare": 13.3,
"Distance": 3.05,
"isPriceZone": false,
"tariffType": "T2",
"tariffTypeId": 319,
"farecolor": "Red",
"fairType": 3,
"PricingInfo": ""
}
]
}