|
@@ -60,10 +60,8 @@ class Station extends Model
|
|
|
->select()
|
|
|
->each(function($item, $key) {
|
|
|
$wgsLoc = \algorithm\Geometry::gcj02ToWgs84((float)$item['latitude'],(float)$item['longitude']);
|
|
|
- // $lngLat = \algorithm\Geometry::convertGcj02ToBd09($wgsLoc['lat'],$wgsLoc['lng']);
|
|
|
- $item['longitude']=$wgsLoc['lng'];
|
|
|
- $item['latitude']=$wgsLoc['lat'];
|
|
|
-
|
|
|
+ $item['longitude']=$wgsLoc['lng'];
|
|
|
+ $item['latitude']=$wgsLoc['lat'];
|
|
|
})->toArray();
|
|
|
|
|
|
return $res;
|