fysoul17 / google_maps_place_picker

Place picker on Google Maps for Flutter
MIT License
222 stars 357 forks source link

Searching Function not working #73

Closed Reet0709 closed 3 years ago

Reet0709 commented 3 years ago

Searching Function is not working . Searching for Location is neither showing Auto complete search bar nor Selecting Any location . It is just Loading the search indicator to infinte. Screenshots

fysoul17 commented 3 years ago

Please create with issue template. It seems like a Google API key issue, but I cannot help you without any specific information.

Reet0709 commented 3 years ago

Please create with issue template. It seems like a Google API key issue, but I cannot help you without any specific information.

After enabling all the following API's-

screenshots

and then used the generated API key . But Searching function is still not functioning. Provide your Guidance what else I need to do to make this work. Thanks in Advance.

wesleyxiao commented 3 years ago

+1 i have same issue, everything working well, only when enter address manually , marker are at the position correct, but bottom keep showing loading icon, not getting the address.

Navigator.push( context, MaterialPageRoute( builder: (context) => PlacePicker( apiKey: '', // Put YOUR OWN KEY here. onPlacePicked: (result) { print(result.formattedAddress); print(result.geometry.location.lat); print(result.geometry.location.lng); print(result.addressComponents); Navigator.of(context).pop(); }, initialPosition: LatLng(-33.8567844, 151.213108), useCurrentLocation: true, desiredLocationAccuracy: LocationAccuracy.medium, selectInitialPosition: true, ), ), );

291602798504_ pic

fysoul17 commented 3 years ago

You need to put your API key

wesleyxiao commented 3 years ago

You need to put your API key

Hello, I have put api key in my code, but For security purposes I didn’t put the api key on here

fysoul17 commented 3 years ago

Was there any error in the console? I am pretty sure there are some error logs in there. The issue typically happens when there is a problem with the API settings.