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