Open LeonardoClemente opened 3 years ago
I just use this to get lat and lng:
double latitude = placeDetails!.result.geometry!.location.lat
double longitude = placeDetails!.result.geometry!.location.lng
I just use this to get lat and lng:
double latitude = placeDetails!.result.geometry!.location.lat double longitude = placeDetails!.result.geometry!.location.lng
Have you used this on the latest version as well? PlacesAutocomplete.show()
now returns a Future of Response which has no lat/lng :/ https://pub.dev/documentation/google_maps_webservice/0.0.20-nullsafety.5/google_maps_webservice.places/Prediction-class.html
I just use this to get lat and lng:
double latitude = placeDetails!.result.geometry!.location.lat double longitude = placeDetails!.result.geometry!.location.lng
Have you used this on the latest version as well?
PlacesAutocomplete.show()
now returns a Future of Response which has no lat/lng :/ https://pub.dev/documentation/google_maps_webservice/0.0.20-nullsafety.5/google_maps_webservice.places/Prediction-class.html
I'm using flutter_google_places: ^0.3.0
Does await
do anything for that?
Hey there,
I was using flutter_google_places to query lat and lon information from locations but it seems the new version has changed the way to use the widgets.
In the previous version I was doing something like this
Is there a way to do the same on version 3 of google_places? Thanks!