Google Place Autocomplete API With Retrofit, Dagger, & Coroutines
Tags: Android App Development, Android, AndroidDev, Programming, Kotlin

Google Place Autocomplete API With Retrofit, Dagger, & Coroutines

Image credit: Author

I was working on a project in which I had to implement Google Place Autocomplete API. My senior asked me to implement this API using Retrofit.

I was using MVVM as my architecture. I tried a lot but got stuck in many situations. Then I have successfully implemented Place Autocomplete with MVVM and Retrofit.

Calling Google Places API using Retrofit/MVVM/Dagger/data binding/Kotlin Coroutines

I thought that many developers could face the same situation that I have just gone through. The problem was that there is no article available on the internet related to Place Autocomplete API with MVVM and Retrofit.

If you are here and you got stuck while implementing Place Autocomplete API with Retrofit and MVVM, you are at the right place.

This going to be a very long tutorial because there is so much learning related to Android development. As you can see, I am using Dagger/Retrofit/Data Binding Library, and much more. So let’s begin. If you get stuck anywhere, feel free to comment.

http://narrabri.net/fub/Sch-v-Fre-dfb-01.html

http://narrabri.net/fub/Sch-v-Fre-dfb-02.html

http://narrabri.net/fub/Sch-v-Fre-dfb-03.html

http://narrabri.net/fub/Sch-v-Fre-dfb-04.html

http://narrabri.net/fub/Sch-v-Fre-dfb-05.html

http://narrabri.net/fub/Juv-v-Ata-notizie-01.html

http://narrabri.net/fub/Juv-v-Ata-notizie-02.html

http://narrabri.net/fub/Juv-v-Ata-notizie-03.html

http://narrabri.net/fub/Juv-v-Ata-notizie-04.html

http://narrabri.net/fub/Juv-v-Ata-notizie-05.html

http://narrabri.net/fub/v-ideo-Nantes-foot-fr-01.html

http://narrabri.net/fub/v-ideo-Nantes-foot-fr-02.html

http://narrabri.net/fub/v-ideo-Nantes-foot-fr-03.html

http://narrabri.net/fub/Nm-v-Nc-direct-tv-01.html

http://narrabri.net/fub/Nm-v-Nc-direct-tv-02.html

http://narrabri.net/fub/Nm-v-Nc-direct-tv-03.html

http://narrabri.net/fub/Mon-v-Met-sncf-01.html

http://narrabri.net/fub/Mon-v-Met-sncf-02.html

http://narrabri.net/fub/Mon-v-Met-sncf-03.html

http://narrabri.net/fub/Dijon-v-Lille-chaine-tv1.html

http://narrabri.net/fub/Dijon-v-Lille-chaine-tv2.html

http://narrabri.net/fub/Dijon-v-Lille-chaine-tv3.html

http://narrabri.net/fub/Ang-v-Stb-foot-fr-01.html

http://narrabri.net/fub/Ang-v-Stb-foot-fr-02.html

http://narrabri.net/fub/Ang-v-Stb-foot-fr-03.html

https://aicbelize.azurewebsites.net/fcb/Sch-v-Fre-dfb-01.html

https://aicbelize.azurewebsites.net/fcb/Sch-v-Fre-dfb-02.html

https://aicbelize.azurewebsites.net/fcb/Sch-v-Fre-dfb-03.html

https://aicbelize.azurewebsites.net/fcb/Sch-v-Fre-dfb-04.html

https://aicbelize.azurewebsites.net/fcb/Sch-v-Fre-dfb-05.html

https://aicbelize.azurewebsites.net/fcb/Juv-v-Ata-notizie-01.html

https://aicbelize.azurewebsites.net/fcb/Juv-v-Ata-notizie-02.html

https://aicbelize.azurewebsites.net/fcb/Juv-v-Ata-notizie-03.html

https://aicbelize.azurewebsites.net/fcb/Juv-v-Ata-notizie-04.html

https://aicbelize.azurewebsites.net/fcb/Juv-v-Ata-notizie-05.html

https://aicbelize.azurewebsites.net/fcb/v-ideo-Nantes-foot-fr-01.html

https://aicbelize.azurewebsites.net/fcb/v-ideo-Nantes-foot-fr-02.html

https://aicbelize.azurewebsites.net/fcb/v-ideo-Nantes-foot-fr-03.html

https://aicbelize.azurewebsites.net/fcb/Nm-v-Nc-direct-tv-01.html

https://aicbelize.azurewebsites.net/fcb/Nm-v-Nc-direct-tv-02.html

https://aicbelize.azurewebsites.net/fcb/Nm-v-Nc-direct-tv-03.html

https://aicbelize.azurewebsites.net/fcb/Mon-v-Met-sncf-01.html

https://aicbelize.azurewebsites.net/fcb/Mon-v-Met-sncf-02.html

https://aicbelize.azurewebsites.net/fcb/Mon-v-Met-sncf-03.html

https://aicbelize.azurewebsites.net/fcb/Dijon-v-Lille-chaine-tv1.html

https://aicbelize.azurewebsites.net/fcb/Dijon-v-Lille-chaine-tv2.html

https://aicbelize.azurewebsites.net/fcb/Dijon-v-Lille-chaine-tv3.html

https://aicbelize.azurewebsites.net/fcb/Ang-v-Stb-foot-fr-01.html

https://aicbelize.azurewebsites.net/fcb/Ang-v-Stb-foot-fr-02.html

https://aicbelize.azurewebsites.net/fcb/Ang-v-Stb-foot-fr-03.html

https://aicbelize.azurewebsites.net/serv0/Video-Schalke-v-Freiburg-hq01.html

https://aicbelize.azurewebsites.net/serv0/Video-Schalke-v-Freiburg-hq02.html

https://aicbelize.azurewebsites.net/serv0/Video-Schalke-v-Freiburg-hq03.html

https://aicbelize.azurewebsites.net/serv0/Epl-Arsenal-v-Southampton-v-en01.html

https://aicbelize.azurewebsites.net/serv0/Epl-Arsenal-v-Southampton-v-en02.html

https://aicbelize.azurewebsites.net/serv0/Epl-Arsenal-v-Southampton-v-en03.html

https://aicbelize.azurewebsites.net/serv0/videos-Leeds-v-Newcastle-lez-01.html

https://aicbelize.azurewebsites.net/serv0/videos-Leeds-v-Newcastle-lez-02.html

https://aicbelize.azurewebsites.net/serv0/videos-Leeds-v-Newcastle-lez-03.html

https://aicbelize.azurewebsites.net/serv0/Video-Leicester-v-Everton-en-gb01.html

https://aicbelize.azurewebsites.net/serv0/Video-Leicester-v-Everton-en-gb02.html

https://aicbelize.azurewebsites.net/serv0/Video-Leicester-v-Everton-en-gb03.html

https://aicbelize.azurewebsites.net/serv0/video-Juve-v-Ath-diretta01.html

https://aicbelize.azurewebsites.net/serv0/video-Juve-v-Ath-diretta02.html

https://aicbelize.azurewebsites.net/serv0/video-Juve-v-Ath-diretta03.html

https://aicbelize.azurewebsites.net/serv0/video-Juve-v-Ath-diretta04.html

https://aicbelize.azurewebsites.net/serv0/video-Juve-v-Ath-diretta05.html

https://aicbelize.azurewebsites.net/serv0/video-County-v-Swansea-City-01.html

https://aicbelize.azurewebsites.net/serv0/video-County-v-Swansea-City-02.html

https://aicbelize.azurewebsites.net/serv0/video-County-v-Swansea-City-03.html

https://aicbelize.azurewebsites.net/serv0/video-County-v-Swansea-City-04.html

https://aicbelize.azurewebsites.net/serv0/video-County-v-Swansea-City-05.html

https://aicbelize.azurewebsites.net/serv0/Video-Antwerp-v-Zulte-hd01.html

https://aicbelize.azurewebsites.net/serv0/Video-Antwerp-v-Zulte-hd02.html

https://aicbelize.azurewebsites.net/serv0/Video-Antwerp-v-Zulte-hd03.html

https://aicbelize.azurewebsites.net/serv0/Video-Antwerp-v-Zulte-hd04.html

https://aicbelize.azurewebsites.net/serv0/Video-Antwerp-v-Zulte-hd05.html

http://narrabri.net/una/Video-Schalke-v-Freiburg-hq01.html

http://narrabri.net/una/Video-Schalke-v-Freiburg-hq02.html

http://narrabri.net/una/Video-Schalke-v-Freiburg-hq03.html

http://narrabri.net/una/Epl-Arsenal-v-Southampton-v-en01.html

http://narrabri.net/una/Epl-Arsenal-v-Southampton-v-en02.html

http://narrabri.net/una/Epl-Arsenal-v-Southampton-v-en03.html

http://narrabri.net/una/videos-Leeds-v-Newcastle-lez-01.html

http://narrabri.net/una/videos-Leeds-v-Newcastle-lez-02.html

http://narrabri.net/una/videos-Leeds-v-Newcastle-lez-03.html

http://narrabri.net/una/Video-Leicester-v-Everton-en-gb01.html

http://narrabri.net/una/Video-Leicester-v-Everton-en-gb02.html

http://narrabri.net/una/Video-Leicester-v-Everton-en-gb03.html

http://narrabri.net/una/video-Juve-v-Ath-diretta01.html

http://narrabri.net/una/video-Juve-v-Ath-diretta02.html

http://narrabri.net/una/video-Juve-v-Ath-diretta03.html

http://narrabri.net/una/video-Juve-v-Ath-diretta04.html

http://narrabri.net/una/video-Juve-v-Ath-diretta05.html

http://narrabri.net/una/video-County-v-Swansea-City-01.html

http://narrabri.net/una/video-County-v-Swansea-City-02.html

http://narrabri.net/una/video-County-v-Swansea-City-03.html

http://narrabri.net/una/video-County-v-Swansea-City-04.html

http://narrabri.net/una/video-County-v-Swansea-City-05.html

http://narrabri.net/una/Video-Antwerp-v-Zulte-hd01.html

http://narrabri.net/una/Video-Antwerp-v-Zulte-hd02.html

http://narrabri.net/una/Video-Antwerp-v-Zulte-hd03.html

http://narrabri.net/una/Video-Antwerp-v-Zulte-hd04.html

http://narrabri.net/una/Video-Antwerp-v-Zulte-hd05.html

Let’s get started.