Lokale

Standorte mit vollständigen Adress-Daten, Google-Maps-Koordinaten, Öffnungszeiten und Logo. Mit Kategorien und Medien.

Liste

getLocationList($config, $mediaCheck = "false")

Gibt Standorte zurück. Enthält vollständige Adress-Daten, Google-Maps-Koordinaten (googleLAT, googleLNG, googlePlaceID), Öffnungszeiten und Logo.

$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
    }
}
KeyBeschreibungWerte
websiteWebsite-IDSITE_ID
statusStatusfilter'1' · '0' · leer
categorieKategorie-ID FilterID
countryLändercode Filter'CH' · 'DE' · 'AT'
labelLabel-ID FilterID
searchFreitextsucheBegriff
orderbySortierfeld'id' · 'headline'
directionRichtung'asc' · 'desc'
start / limitPaginationInteger
KeyBeschreibung
id / key / tags / headline / content / descriptionBasisdaten
address_1Strasse und Hausnummer
address_2Adresszusatz
zipPostleitzahl
cityOrt
state / stateShortKanton/Bundesland
countryLändercode (CH, DE, AT, ...)
googleLAT / googleLNGGPS-Koordinaten
googlePlaceIDGoogle Place ID
phoneTelefonnummer
emailE-Mail-Adresse
opening_hours[0–6]Öffnungszeiten (0=Mo bis 6=So)
logo.image / .thumbnail / .smallLogo (geprüft)
image.image / .thumbnail / .smallHauptbild (geprüft)
image_items / video_items / media_itemsAnzahl Medien
links[] / downloads[]Verknüpfte Links und Downloads
[
    {
        "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": [] } ]

Playground