|
|
|
@ -127,9 +127,11 @@ class Shop extends ShopModel |
|
|
|
|
$data['latitude'] = $coordinate[0]; |
|
|
|
|
$data['longitude'] = $coordinate[1]; |
|
|
|
|
// 格式化停车场坐标信息 |
|
|
|
|
$parking_coordinate = explode(',', $data['parking_coordinate']); |
|
|
|
|
$data['parking_latitude'] = $parking_coordinate[0]; |
|
|
|
|
$data['parking_longitude'] = $parking_coordinate[1]; |
|
|
|
|
if (!empty($data['parking_coordinate'])) { |
|
|
|
|
$parking_coordinate = explode(',', $data['parking_coordinate']); |
|
|
|
|
$data['parking_latitude'] = $parking_coordinate[0]; |
|
|
|
|
$data['parking_longitude'] = $parking_coordinate[1]; |
|
|
|
|
} |
|
|
|
|
// 生成geohash |
|
|
|
|
$data['geohash'] = (new Geohash)->encode($data['longitude'], $data['latitude']); |
|
|
|
|
// 省市区ID |
|
|
|
|