Search code examples
androidgoogle-mapsgoogle-apigoogle-places-apiandroid-googleapiclient

How to Use google places api in android with restrict particular place?


Hey Guys i basically i want to create one application that have Autocomplete TextView and show place according user search i just restrict user show only india's city name not other. can any one know ?


Solution

  • To search places bounded to only India , you can use setBoundsBias() in your code.Google now provides Autocomplete widget which makes things even simpler. Please see this link: https://developers.google.com/places/android-api/autocomplete