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.

Share:
6,153
Ajay Kumar
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, 2022

Comments

  • Ajay Kumar
    Ajay Kumar over 1 year

    Auto Complete Address

    How to AutoComplete an Address and get Lat/Long of that address in #flutter?

  • Leoog
    Leoog almost 5 years
    I 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
    Kamlesh almost 3 years
    Is 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
    Kamlesh almost 3 years
    Is 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
    abdul rehman over 2 years
    Checkout my custom utility class for places auto complete arkapp.medium.com/…
  • abdul rehman
    abdul rehman over 2 years
    Implemented the above for easy use - arkapp.medium.com/…