|
|
|
@ -160,8 +160,8 @@ class LocationService implements LocationServiceInterface |
|
|
|
$resultArr = json_decode($response,true); |
|
|
|
if($resultArr['status'] > 0) |
|
|
|
{ |
|
|
|
//return 1000;
|
|
|
|
throw new ErrorCodeException(ErrorCode::LOCATION_ERROR,$resultArr['message']); |
|
|
|
return 1000; |
|
|
|
//throw new ErrorCodeException(ErrorCode::LOCATION_ERROR,$resultArr['message']);
|
|
|
|
} |
|
|
|
$distance = $resultArr['result']['routes'][0]['distance']; |
|
|
|
return $distance; |
|
|
|
|