Standorte mit vollständigen Adress-Daten, Google-Maps-Koordinaten, Öffnungszeiten und Logo. Mit Kategorien und Medien.
Gibt Standorte zurück. Enthält vollständige Adress-Daten, Google-Maps-Koordinaten (googleLAT, googleLNG, googlePlaceID), Öffnungszeiten und Logo.
Code
$config = [];
$config["website"] = '1';
$config["status"] = '1';
$config["label"] = '';
$config["categorie"] = ''; // optional: Kategorie-ID
$config["country"] = ''; // optional: Ländercode z.B. 'CH'
$config["search"] = '';
$config["orderby"] = 'headline';
$config["direction"] = 'asc';
$config["start"] = '0';
$config["limit"] = '10';
$lokale = getLocationList($config);
foreach ($lokale as $l) {
echo $l["headline"];
echo $l["address_1"]; // Strasse + Hausnummer
echo $l["zip"]; // PLZ
echo $l["city"]; // Ort
echo $l["country"]; // Ländercode (CH, DE, AT, ...)
echo $l["googleLAT"]; // Breitengrad
echo $l["googleLNG"]; // Längengrad
echo $l["googlePlaceID"];// Google Place ID
echo $l["phone"]; // Telefon
echo $l["email"]; // E-Mail
echo $l["logo"]["image"]; // Logo
echo $l["image"]["image"]; // Hauptbild
// Öffnungszeiten (0=Montag bis 6=Sonntag):
foreach ($l["opening_hours"] as $day => $hours) {
echo $hours; // Öffnungszeit-Text
}
}
$config Parameter
| Key | Beschreibung | Werte |
|---|---|---|
| website | Website-ID | SITE_ID |
| status | Statusfilter | '1' · '0' · leer |
| categorie | Kategorie-ID Filter | ID |
| country | Ländercode Filter | 'CH' · 'DE' · 'AT' |
| label | Label-ID Filter | ID |
| search | Freitextsuche | Begriff |
| orderby | Sortierfeld | 'id' · 'headline' |
| direction | Richtung | 'asc' · 'desc' |
| start / limit | Pagination | Integer |
Rückgabe-Keys
| Key | Beschreibung |
|---|---|
| id / key / tags / headline / content / description | Basisdaten |
| address_1 | Strasse und Hausnummer |
| address_2 | Adresszusatz |
| zip | Postleitzahl |
| city | Ort |
| state / stateShort | Kanton/Bundesland |
| country | Ländercode (CH, DE, AT, ...) |
| googleLAT / googleLNG | GPS-Koordinaten |
| googlePlaceID | Google Place ID |
| phone | Telefonnummer |
| E-Mail-Adresse | |
| opening_hours[0–6] | Öffnungszeiten (0=Mo bis 6=So) |
| logo.image / .thumbnail / .small | Logo (geprüft) |
| image.image / .thumbnail / .small | Hauptbild (geprüft) |
| image_items / video_items / media_items | Anzahl Medien |
| links[] / downloads[] | Verknüpfte Links und Downloads |
Ausgabe (Live)
[
{
"id": "28",
"key": "afasdfads-f28",
"tags": "",
"headline": "afasdfads f",
"content": "",
"description": "",
"address_1": "",
"address_2": "",
"zip": "",
"city": "",
"state": "",
"stateShort": "",
"country": "",
"googleLAT": "",
"googleLNG": "",
"googlePlaceID": "",
"phone": "",
"email": "",
"opening_hours": [
"close",
"close",
"17.25-18.25",
"close",
"close",
"close",
"close"
],
"categories": [
""
],
"categorie": "",
"label": [
""
],
"website": [
"1"
],
"status": "1",
"update": "2026-01-20 17:25:15",
"image_items": 0,
"video_items": 0,
"videofile_items": 0,
"media_items": 0,
"image": [],
"video": [],
"videofile": []
},
{
"id": "32",
"key": "afasdfasd32",
"tags": "",
"headline": "afasdfasd",
"content": "f asdf asd f<\/p>",
"description": "",
"address_1": "",
"address_2": "",
"zip": "",
"city": "",
"state": "",
"stateShort": "",
"country": "",
"googleLAT": "",
"googleLNG": "",
"googlePlaceID": "",
"phone": "",
"email": "",
"opening_hours": [
"close",
"close",
"close",
"close",
"close",
"close",
"close"
],
"categories": [
""
],
"categorie": "",
"label": [
""
],
"website": [
"1"
],
"status": "1",
"update": "2026-02-09 11:01:37",
"image_items": 0,
"video_items": 0,
"videofile_items": 0,
"media_items": 0,
"image": [],
"video": [],
"videofile": []
},
{
"id": "30",
"key": "adfadf30",
"tags": "",
"headline": "BETA Solutions GmbH",
"content": "
adfadfadf<\/p>",
"description": "",
"address_1": "Oberfeldstrasse 20",
"address_2": "",
"zip": "8302",
"city": "Kloten",
"state": "",
"stateShort": "",
"country": "",
"googleLAT": "",
"googleLNG": "",
"googlePlaceID": "",
"phone": "+41417560870",
"email": "",
"opening_hours": [
"close",
"close",
"close",
"close",
"close",
"close",
"close"
],
"categories": [
""
],
"categorie": "",
"label": [
""
],
"website": [
"1"
],
"status": "1",
"update": "2026-01-22 13:02:03",
"image_items": 0,
"video_items": 0,
"videofile_items": 0,
"media_items": 0,
"image": [],
"video": [],
"videofile": []
}
]