Im trying to set the google places autocomplete to sort the results from the nearest to a point. I have a code like this...
to return places just in radius you need to set strictbounds to true.
The main problem for me right now is that Autocomplete doesn't have rankBy. see here