Implement google location search in android app like OlaCabs

前端 未结 2 1627
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-15 08:20

I have implemented google location search like OlaCabs app but it is not as fast in searching as OlaCabs do.Reason behind it is I need to hit a rest api (Go

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-15 08:24

    You are in search of Google places autocomplete.

    I figured Google has the Place Autocomplete service using which I can allow the user to type in a city name which’ll fetch all the cities containing that string from Google’s servers that can be presented in an AutoCompleteTextView.

    Link :

    *http://codetheory.in/google-place-api-autocomplete-service-in-android-application/

    Hope it will* help you.

提交回复
热议问题