How to AutoComplete an Address and get Lat/Long of that address in #flutter?
6,153
Solution 1
This is nothing you can do directly with flutter. You need to call an API for that service. In a recent project I used HERE Autocomplete and HERE Geocoder for such a service, which worked quite well.
In Flutter you just need to work with the responses of those APIs. In my case the FutureBuilder was the perfect solution (there is even an example in the docs which is a good starting point).
Solution 2
You have to make HTTP Networking Requests in Flutter to the Place Autocomplete service that is part of the Places API Web Service.
Author by
Ajay Kumar
I'm a Technical Lead Flutter in Pune, India. I am passionate about building excellent software that improves the lives of those around me.
Updated on December 03, 2022Comments
-
Ajay Kumar over 1 year
-
Noam over 4 years
-
abdul rehman over 2 yearsI created a simple utility class for the problem - arkapp.medium.com/…
-
-
Leoog almost 5 yearsI tried it out, the company is crap. It says I've exceeded the # of projects I'm allowed and I didn't even create 1 project.
-
Kamlesh almost 3 yearsIs there any free service to use map address to lat-long, lat-long to address and place autocomplete provider? Kindly suggest. Thanks a lot.
-
Kamlesh almost 3 yearsIs there any free service to use map address to lat-long, lat-long to address and place autocomplete provider? Kindly suggest. Thanks a lot.
-
abdul rehman over 2 yearsCheckout my custom utility class for places auto complete arkapp.medium.com/…
-
abdul rehman over 2 yearsImplemented the above for easy use - arkapp.medium.com/…