Shrutimahajan / Google-AutoComplete-TextField-Flutter

MIT License
33 stars 111 forks source link

Address components in places detail #12

Open rogueturnip opened 2 years ago

rogueturnip commented 2 years ago

Hi! I'm hoping you might be able to help me. I'd like to get access to the Address components in the Places Details but I can't seem to see where this would be available.

Per the documentation it should be under results but I don't see it in predictions. Specifically I'm looking for:

        [
          { "long_name": "48", "short_name": "48", "types": ["street_number"] },
          {
            "long_name": "Pirrama Road",
            "short_name": "Pirrama Rd",
            "types": ["route"],
          },
          {
            "long_name": "Pyrmont",
            "short_name": "Pyrmont",
            "types": ["locality", "political"],
          },
          {
            "long_name": "Council of the City of Sydney",
            "short_name": "Sydney",
            "types": ["administrative_area_level_2", "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": "2009",
            "short_name": "2009",
            "types": ["postal_code"],
          },
        ],

Thanks!

evanrich commented 3 weeks ago

Wow 3 years later and not a single reply :/