Testskript: Adressen-Verifizierung und Korrektur

Empfangene Daten:

Array
(
    [0] => Array
        (
            [place_id] => 160732063
            [licence] => Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright
            [osm_type] => way
            [osm_id] => 161158346
            [lat] => 52.48805705
            [lon] => 13.366574175007825
            [class] => building
            [type] => apartments
            [place_rank] => 30
            [importance] => 9.9999999999545E-6
            [addresstype] => building
            [name] => 
            [display_name] => 9, Monumentenstraße, Rote Insel, Schöneberg, Tempelhof-Schöneberg, Berlin, 10829, Germany
            [address] => Array
                (
                    [house_number] => 9
                    [road] => Monumentenstraße
                    [neighbourhood] => Rote Insel
                    [suburb] => Schöneberg
                    [borough] => Tempelhof-Schöneberg
                    [city] => Berlin
                    [ISO3166-2-lvl4] => DE-BE
                    [postcode] => 10829
                    [country] => Germany
                    [country_code] => de
                )

            [boundingbox] => Array
                (
                    [0] => 52.4879324
                    [1] => 52.4881880
                    [2] => 13.3665299
                    [3] => 13.3668768
                )

        )

)

Ergebnisse:

Monumentenstraße 9, 10829 Berlin, Germany
lat: 52.48805705
lon: 13.366574175007825

Label (z.B. für Textverarbietung):

<Firma>
<Anrede> <Vorname> <Name>
Monumentenstraße 9

Berlin - Schöneberg
10829

Germany

Daten:

Array
(
    [place_id] => 160732063
    [licence] => Data © OpenStreetMap contributors, ODbL 1.0. http://osm.org/copyright
    [osm_type] => way
    [osm_id] => 161158346
    [lat] => 52.48805705
    [lon] => 13.366574175007825
    [class] => building
    [type] => apartments
    [place_rank] => 30
    [importance] => 9.9999999999545E-6
    [addresstype] => building
    [name] => 
    [display_name] => 9, Monumentenstraße, Rote Insel, Schöneberg, Tempelhof-Schöneberg, Berlin, 10829, Germany
    [address] => Array
        (
            [house_number] => 9
            [road] => Monumentenstraße
            [neighbourhood] => Rote Insel
            [suburb] => Schöneberg
            [borough] => Tempelhof-Schöneberg
            [city] => Berlin
            [ISO3166-2-lvl4] => DE-BE
            [postcode] => 10829
            [country] => Germany
            [country_code] => de
            [county] => Berlin
        )

    [boundingbox] => Array
        (
            [0] => 52.4879324
            [1] => 52.4881880
            [2] => 13.3665299
            [3] => 13.3668768
        )

)

Sonstige Informationen:

Versuche: 1 / Dauer: 537 ms

WARNUNG: Dies ist nur ein Test! Für eine stabile API kontaktieren Sie: Jörg Reinholz, Hafenstr. 67, 34125 Kassel