'awigoLocations', 'awigo_locations[method]' => 'getLocations', 'awigo_locations[lat]' => 52.28, 'awigo_locations[lon]' => 8.05, 'awigo_locations[v]' => 2, 'awigo_locations[format]' => 'json' ])); $response = curl_exec($ch); curl_close($ch); $orte = json_decode($response, true); $orteJsArray = json_encode($orte, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); // ### HTML-Response $html = '
Google Maps

Bitte einen Ort auswählen!





'; // JSON-Response aufbauen $dictResponse = [ "success" => true, "status_code" => 200, "status_description" => "ok", "response" => $html ]; $output = json_encode($dictResponse, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE); header('Content-Type: application/json'); http_response_code($dictResponse["status_code"]); echo $output; exit;