fluttercommunity / flutter_google_places

Google Places - Google places autocomplete widgets for flutter. No wrapper, use https://pub.dev/packages/google_maps_webservice. Maintainer: @juliansteenbakker
https://pub.dev/packages/flutter_google_places
Other
303 stars 413 forks source link

Address filtration in autocomplete #197

Open votruk opened 2 years ago

votruk commented 2 years ago

I use autocomplete and I want to get results with addresses only.

In the Android version of SDK, you can find TypeFilter.ADDRESS for that occasion (https://developers.google.com/maps/documentation/places/android-sdk/reference/com/google/android/libraries/places/api/model/TypeFilter)

In the iOS version of SDK you have kGMSPlacesAutocompleteTypeFilterAddress (https://developers.google.com/maps/documentation/places/ios-sdk/reference/group___places_autocomplete_type_filter)

I wasn't able to find in what list of types the mentioned constants are converting. Can anybody provide more details on how can I achieve address filtering through types? Thanks!