POST api/hire/FindTaxi
Request Information
URI Parameters
None.
Body Parameters
TaxiFilterViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
|
| DestinationLat | decimal number |
None. |
|
| DestinationLong | decimal number |
None. |
|
| VehicleType | string |
None. |
|
| Model | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Latitude": 1.1,
"Longitude": 2.1,
"DestinationLat": 3.1,
"DestinationLong": 4.1,
"VehicleType": "sample string 5",
"Model": "sample string 6"
}
application/xml, text/xml
Sample:
<TaxiFilterViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Codezync.Taxi.ViewModels"> <DestinationLat>3.1</DestinationLat> <DestinationLong>4.1</DestinationLong> <Latitude>1.1</Latitude> <Longitude>2.1</Longitude> <Model>sample string 6</Model> <VehicleType>sample string 5</VehicleType> </TaxiFilterViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of TaxiViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DriverId | integer |
None. |
|
| VehicleId | integer |
None. |
|
| DriverName | string |
None. |
|
| DriverPhone | string |
None. |
|
| VehicleNumber | string |
None. |
|
| Make | string |
None. |
|
| Model | string |
None. |
|
| ModelCode | string |
None. |
|
| Distance | decimal number |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
|
| Bearing | decimal number |
None. |
|
| EstimatedTime | decimal number |
None. |
|
| HireId | integer |
None. |
|
| Hires | Collection of HireViewModel |
None. |
Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml
Sample:
Sample not available.
text/xml
Sample:
Sample not available.