PLZ Nearby Anzeige Demo

Diese Demo nutzt ogdbPLZnearby.lib.php (square shaped area search)
Ganz infache Ausgabe ohne weitere Angaben.

Demo call: ogdbPLZnearby('89537','10')

Rückgabe: PLZ in 10km Umkreis(Kreis)

Array
(
    [0] => 89168
    [1] => 89428
    [2] => 89429
    [3] => 89431
    [4] => 89437
    [5] => 89441
    [6] => 89447
    [7] => 89522
    [8] => 89537
    [9] => 89542
    [10] => 89567
    [11] => 89568
)

Demo call: ogdbPLZnearby('89537','10',true)

Rückgabe: PLZ und Ortsname in 10km Umkreis(Kreis)

Array
(
    [0] => Array
        (
            [zip] => 89168
            [city] => Niederstotzingen
        )

    [1] => Array
        (
            [zip] => 89428
            [city] => Syrgenstein
        )

    [2] => Array
        (
            [zip] => 89429
            [city] => Bachhagel
        )

    [3] => Array
        (
            [zip] => 89431
            [city] => Bächingen an der Brenz
        )

    [4] => Array
        (
            [zip] => 89437
            [city] => Haunsheim
        )

    [5] => Array
        (
            [zip] => 89441
            [city] => Medlingen
        )

    [6] => Array
        (
            [zip] => 89447
            [city] => Zöschingen
        )

    [7] => Array
        (
            [zip] => 89522
            [city] => Heidenheim an der Brenz
        )

    [8] => Array
        (
            [zip] => 89537
            [city] => Giengen an der Brenz
        )

    [9] => Array
        (
            [zip] => 89542
            [city] => Herbrechtingen
        )

    [10] => Array
        (
            [zip] => 89567
            [city] => Sontheim an der Brenz
        )

    [11] => Array
        (
            [zip] => 89568
            [city] => Hermaringen
        )

)

Demo call: ogdbPLZnearby('89537','10',true,true)

Rückgabe: PLZ und Ortsname PLUS km Entfernung in 10km Umkreis(Kreis)

Array
(
    [0] => Array
        (
            [zip] => 89168
            [city] => Niederstotzingen
            [dist] => 8
        )

    [1] => Array
        (
            [zip] => 89428
            [city] => Syrgenstein
            [dist] => 6
        )

    [2] => Array
        (
            [zip] => 89429
            [city] => Bachhagel
            [dist] => 7
        )

    [3] => Array
        (
            [zip] => 89431
            [city] => Bächingen an der Brenz
            [dist] => 10
        )

    [4] => Array
        (
            [zip] => 89437
            [city] => Haunsheim
            [dist] => 9
        )

    [5] => Array
        (
            [zip] => 89441
            [city] => Medlingen
            [dist] => 7
        )

    [6] => Array
        (
            [zip] => 89447
            [city] => Zöschingen
            [dist] => 8
        )

    [7] => Array
        (
            [zip] => 89522
            [city] => Heidenheim an der Brenz
            [dist] => 7
        )

    [8] => Array
        (
            [zip] => 89537
            [city] => Giengen an der Brenz
            [dist] => 0
        )

    [9] => Array
        (
            [zip] => 89542
            [city] => Herbrechtingen
            [dist] => 6
        )

    [10] => Array
        (
            [zip] => 89567
            [city] => Sontheim an der Brenz
            [dist] => 8
        )

    [11] => Array
        (
            [zip] => 89568
            [city] => Hermaringen
            [dist] => 3
        )

)

Vorteile:

  • ...

Nachteile:

  • ...

Fazit:

  • ...

Quellen: