-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LocationResult return null #69
Comments
Same for me. |
This library practically doesnt work and is neither useful for any reasonable use |
I was getting the same result until I did some debugging - turns out you have to enable billing in the project for Places Api to work. Here are the details:
|
Geocoding API needs to be enabled for the plugin to work and return actual place info (and not null), whereas the Places API is optional and needed only if you want to display "Places" such as restaurants etc. Geocoding API: https://console.cloud.google.com/apis/library/geocoding-backend.googleapis.com |
result = await Navigator.of(context).push(MaterialPageRoute(
builder: (context) =>
PlacePicker(keyMap,
displayLocation: LatLng(lat,lon),
)));
The text was updated successfully, but these errors were encountered: