Added Breeze
This commit is contained in:
@@ -14,13 +14,12 @@ class MapController extends Controller
|
||||
|
||||
private array $apiParams;
|
||||
|
||||
|
||||
public function index(int $id)
|
||||
{
|
||||
$this->apiParams = array(
|
||||
$this->apiParams = [
|
||||
"apikey" => $this->yandex_key,
|
||||
"lang" =>"ru_RU",
|
||||
);
|
||||
];
|
||||
|
||||
$apiCall = $this->createApiCall();
|
||||
|
||||
@@ -32,10 +31,13 @@ class MapController extends Controller
|
||||
public function getPlace(int $id)
|
||||
{
|
||||
$place = Place::find($id);
|
||||
[ $x, $y ] = explode("|",$place->Gps);
|
||||
[ $x, $y ] = explode("|", $place->gps);
|
||||
|
||||
return response()->json([
|
||||
'x' => $x, 'y' => $y
|
||||
'x' => $x,
|
||||
'y' => $y,
|
||||
'id' => $id,
|
||||
'name' => $place->Name,
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user