I am checking for similar results as stated in this link ,it for server side Google Places Api sort by distance
I need to sort the places based on my nearest distance of mobile android . But , I dont see any rankby distance in api .
Is there any other way to do in Android for AutoComplete Fragment
Officially, their documentation doesn't support rank by distance feature for Autocomplete. This holds true not only for Places Autocomplete for Android, but to Javascript (client-side) and web service (server-side) as well.
However, a possible workaround would be (depending on your use case), but would be much more expensive, is to make use of Distance Matrix API and create your own Autocomplete depending on its result. So the idea is to:
You might also want to consider filing a feature request for that functionality to be added on their public issue tracker. Here is a link to guide you for your reference: https://developers.google.com/maps/support