Skip to main content

Get All Cabs Around Users

Endpoint
POST /api/Account/RefreshToken

This api is useful when you are building a ride hailing mobile app and needs to show free cabs around the user's location.

You can filter down the cabs available according to seating capaciy or within a radius.

Body
{
"Location":"53.642529227647429,-1.8076418504523812",
"Seating":"Any"
}
Example Response
{
"Message": "",
"DevMessage": "",
"Content": [
{
"Driver ID": 13,
"Driver Name": "Test",
"Vehicle ID": 3558,
"Vehicle RegID": "RCPAK17",
"Vehicle Make": "HONDA",
"Vehicle Model": "City",
"Vehicle Color": "White",
"Status": "Green",
"LatLong": {
"_geometry": {
"m_points": [
{
"x": 53.64099,
"y": -1.789019
}
],
"m_zValues": null,
"m_mValues": null,
"m_figures": [
{
"pointOffset": 0,
"figureAttribute": 1
}
],
"m_shapes": [
{
"figureOffset": 0,
"parentOffset": -1,
"type": 1
}
],
"m_fValid": true,
"m_extendedUserProperties": 0
},
"_isNull": false,
"_srid": 0
},
"Company ID": 15,
"Company Name": "HollywoodCars",
"Seating": "Saloon",
"Rating": "Bronze81",
"Phone Number": "01484453060",
"RatingID": 4,
"SeatingID": 15,
"NumberOfSeats": 4,
"Id": 3,
"CompanyId": 15,
"ChannelId": 7,
"Description": "M2",
"IsDefault": false,
"Picture": "https://stage.infocabs.com/UploadedFiles/CompanyImages/HollywoodCars/marker-icon-A_25-11-2021-10-43-28.png",
"CreatedDate": "2021-11-24T10:54:22.38",
"CreatedBy": "",
"ModifiedDate": "2021-11-25T10:43:28.63",
"ModifiedBy": ""
},
{
"Driver ID": 13,
"Driver Name": "Test",
"Vehicle ID": 3558,
"Vehicle RegID": "RCPAK17",
"Vehicle Make": "HONDA",
"Vehicle Model": "City",
"Vehicle Color": "White",
"Status": "Green",
"LatLong": {
"_geometry": {
"m_points": [
{
"x": 53.64099,
"y": -1.789019
}
],
"m_zValues": null,
"m_mValues": null,
"m_figures": [
{
"pointOffset": 0,
"figureAttribute": 1
}
],
"m_shapes": [
{
"figureOffset": 0,
"parentOffset": -1,
"type": 1
}
],
"m_fValid": true,
"m_extendedUserProperties": 0
},
"_isNull": false,
"_srid": 0
},
"Company ID": 15,
"Company Name": "HollywoodCars",
"Seating": "Saloon",
"Rating": "Bronze81",
"Phone Number": "01484453060",
"RatingID": 4,
"SeatingID": 15,
"NumberOfSeats": 4,
"Id": 2,
"CompanyId": 15,
"ChannelId": 7,
"Description": "M1",
"IsDefault": true,
"Picture": "https://stage.infocabs.com/UploadedFiles/CompanyImages/HollywoodCars/MarkerCar_14-12-2021-01-34-45.png",
"CreatedDate": "2021-11-23T16:07:49.627",
"CreatedBy": "",
"ModifiedDate": "2021-12-14T13:34:45.95",
"ModifiedBy": ""
}
]
}

Different seating capacity parameters can be sent as

'Seating':'Any'
OR
'Seating':'4'
OR
'Seating':'5-6'
OR
'Seating':'7-8'
OR
'Seating':'>8'