Added Breeze

This commit is contained in:
amikhaylov
2026-05-18 23:43:26 +03:00
parent 0c06d83b0b
commit c9a514b0fa
17 changed files with 249 additions and 59 deletions
+7 -5
View File
@@ -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,
]);
}