matanshukry / flutter_google_places_sdk

Flutter plugin for google places native sdk
36 stars 74 forks source link

[BUG] `placeTypesFilter` parameter not working in `findAutocompletePredictions` #57

Closed esuljic closed 1 year ago

esuljic commented 1 year ago

I make the following call, but the results I am getting are not only the REGIONS. I am getting all the businesses as cafes as well.

_places.findAutocompletePredictions(
        searchQuery.text,
        countries: ['ch'],
        placeTypesFilter: [PlaceTypeFilter.REGIONS],
      )

Tested on iOS simulator. I tried putting GEOCODE and CITIES, but I got all the results regardless.

I saw that this enum is deprecated, but there is no alternative option in this Flutter package.

esuljic commented 1 year ago

It is a duplicate of #48.

matanshukry commented 1 year ago

Fixed in 0.3.7 ( see https://github.com/matanshukry/flutter_google_places_sdk/pull/59 for more info )