Projet-Zespolowy-Lab / air-checker

0 stars 0 forks source link

Osobna aplikacja pozwalająca na zamianę nazwa->współrzędne geogr. #46

Open piotr-sobieraj opened 1 week ago

piotr-sobieraj commented 1 week ago
piotr-sobieraj commented 2 days ago

https://maps.googleapis.com/maps/api/geocode/json?address=92-414&key=API_KEY


    "results": [
        {
            "address_components": [
                {
                    "long_name": "92-414",
                    "short_name": "92-414",
                    "types": [
                        "postal_code"
                    ]
                },
                {
                    "long_name": "Widzew",
                    "short_name": "Widzew",
                    "types": [
                        "political",
                        "sublocality",
                        "sublocality_level_1"
                    ]
                },
                {
                    "long_name": "Łódź",
                    "short_name": "Łódź",
                    "types": [
                        "locality",
                        "political"
                    ]
                },
                {
                    "long_name": "Łódź",
                    "short_name": "Łódź",
                    "types": [
                        "administrative_area_level_2",
                        "political"
                    ]
                },
                {
                    "long_name": "Łódź Voivodeship",
                    "short_name": "Łódź Voivodeship",
                    "types": [
                        "administrative_area_level_1",
                        "political"
                    ]
                },
                {
                    "long_name": "Poland",
                    "short_name": "PL",
                    "types": [
                        "country",
                        "political"
                    ]
                }
            ],
            "formatted_address": "92-414 Łódź, Poland",
            "geometry": {
                "bounds": {
                    "northeast": {
                        "lat": 51.7441948,
                        "lng": 19.5683854
                    },
                    "southwest": {
                        "lat": 51.7362668,
                        "lng": 19.5601546
                    }
                },
                "location": {
                    "lat": 51.7403451,
                    "lng": 19.5634105
                },
                "location_type": "APPROXIMATE",
                "viewport": {
                    "northeast": {
                        "lat": 51.7441948,
                        "lng": 19.5683854
                    },
                    "southwest": {
                        "lat": 51.7362668,
                        "lng": 19.5601546
                    }
                }
            },
            "place_id": "ChIJwbFVSykzGkcROqbZ3PWkjo0",
            "types": [
                "postal_code"
            ]
        }
    ],
    "status": "OK"
}```