POST api/DriverLogin/CheckGeoFence
Request Information
URI Parameters
None.
Body Parameters
requestGeoFence| Name | Description | Type | Additional information |
|---|---|---|---|
| originalLat | decimal number |
None. |
|
| originalLng | decimal number |
None. |
|
| driverLat | decimal number |
None. |
|
| driverLng | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"originalLat": 1.1,
"originalLng": 2.1,
"driverLat": 3.1,
"driverLng": 4.1
}
application/xml, text/xml
Sample:
<requestGeoFence xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DriverDbContext.MetaData"> <driverLat>3.1</driverLat> <driverLng>4.1</driverLng> <originalLat>1.1</originalLat> <originalLng>2.1</originalLng> </requestGeoFence>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GeoFenceResp| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| msg | string |
None. |
|
| DriverInCricle | boolean |
None. |
|
| Distance | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"msg": "sample string 2",
"DriverInCricle": true,
"Distance": 4.1
}
application/xml, text/xml
Sample:
<GeoFenceResp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DriverDbContext.MetaData"> <Distance>4.1</Distance> <DriverInCricle>true</DriverInCricle> <msg>sample string 2</msg> <success>true</success> </GeoFenceResp>