POST api/TowingServiceDistance/TowingDistance?lat1={lat1}&lon1={lon1}&lat2={lat2}&lon2={lon2}&unit={unit}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| lat1 | decimal number |
Required |
|
| lon1 | decimal number |
Required |
|
| lat2 | decimal number |
Required |
|
| lon2 | decimal number |
Required |
|
| unit | character |
Required |
Body Parameters
None.
Response Information
Resource Description
TowingServiceDistanceModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ServiceID | integer |
None. |
|
| ID | integer |
None. |
|
| CurrentLocationLatitude | decimal number |
None. |
|
| CurrentLocationLogitude | decimal number |
None. |
|
| DestinationLocationLatitude | decimal number |
None. |
|
| DestinationLocationLogitude | decimal number |
None. |
|
| Distance | decimal number |
None. |
|
| IsActive | boolean |
None. |
|
| CreateOn | date |
None. |
|
| UpdatedOn | date |
None. |
|
| CurrentAddress | string |
None. |
|
| DestinationAddress | string |
None. |
|
| TowingSevicesID | integer |
None. |
|
| UserID | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ServiceID": 1,
"ID": 1,
"CurrentLocationLatitude": 1.0,
"CurrentLocationLogitude": 1.0,
"DestinationLocationLatitude": 1.0,
"DestinationLocationLogitude": 1.0,
"Distance": 1.0,
"IsActive": true,
"CreateOn": "2025-12-31T18:22:34.3107698+05:30",
"UpdatedOn": "2025-12-31T18:22:34.3107698+05:30",
"CurrentAddress": "sample string 2",
"DestinationAddress": "sample string 3",
"TowingSevicesID": 1,
"UserID": "sample string 4"
}
application/xml, text/xml
Sample:
<TowingServiceDistanceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mechon.Models"> <CreateOn>2025-12-31T18:22:34.3107698+05:30</CreateOn> <CurrentAddress>sample string 2</CurrentAddress> <CurrentLocationLatitude>1</CurrentLocationLatitude> <CurrentLocationLogitude>1</CurrentLocationLogitude> <DestinationAddress>sample string 3</DestinationAddress> <DestinationLocationLatitude>1</DestinationLocationLatitude> <DestinationLocationLogitude>1</DestinationLocationLogitude> <Distance>1</Distance> <ID>1</ID> <IsActive>true</IsActive> <ServiceID>1</ServiceID> <TowingSevicesID>1</TowingSevicesID> <UpdatedOn>2025-12-31T18:22:34.3107698+05:30</UpdatedOn> <UserID>sample string 4</UserID> </TowingServiceDistanceModel>