ErrorPro / react-google-autocomplete

React components for google places API.
MIT License
474 stars 113 forks source link

Photos array not returned when place is selected #143

Closed mushfau closed 2 years ago

mushfau commented 2 years ago

the photos array is not returned in the result

{
    "address_components": [
        {
            "long_name": "Sydney Olympic Park",
            "short_name": "Sydney Olympic Park",
            "types": [
                "locality",
                "political"
            ]
        },
        {
            "long_name": "New South Wales",
            "short_name": "NSW",
            "types": [
                "administrative_area_level_1",
                "political"
            ]
        },
        {
            "long_name": "Australia",
            "short_name": "AU",
            "types": [
                "country",
                "political"
            ]
        },
        {
            "long_name": "2127",
            "short_name": "2127",
            "types": [
                "postal_code"
            ]
        }
    ],
    "formatted_address": "Sydney Olympic Park NSW 2127, Australia",
    "geometry": {
        "location": {
            "lat": -33.8465088,
            "lng": 151.0722137
        }
    },
    "place_id": "ChIJhZxZzrikEmsRwLoyFmh9AQU",
    "html_attributions": []
}

is there an options that needs to be added to retrieve the location photos?