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

"API keys with referer restrictions cannot be used with this API." #183

Open aemelyanovff opened 2 years ago

aemelyanovff commented 2 years ago

I want to add "Website restrictions" to my API key, but then I start getting "API keys with referer restrictions cannot be used with this API." errors when using this widget.

I believe the reason is that the underlying google_maps_webservice library calls the API meant to be used in server applications. Shouldn't flutter_google_places use the API meant for client-side applications?