api/v1/customer/online-order/get-distance

POST

/api/v1/customer/online-order/get-distance

This API method will return distance from location_id,address_id or latitude and longitude,

Request Parameters

ParameterValue / TypeRequired
location_idSTRINGfalse
shipping_address_idSTRINGfalse
current_latitudeSTRINGfalse
current_longitudeSTRINGfalse
latitude_toSTRINGfalse
longitude_toSTRINGfalse

Sample Response

{  
   "status":true,
   "distance":15
}
{  
   "status":false,
   "message":"No Latitude or Longitude Found for Address"
}
{  
   "status":false,
   "message":"No Latitude or Longitude Found for Address"
}
{
    "status": false,
    "message": "Failed to find customer address record"
}