I am trying to implement an autocomplete box that looks like the google maps iOS app. In that app, the suggestions are sorted by distance with a label on the left showing the distance. I presume they are using the Places Autocomplete API but I can't get it to return the distance. Is there some sort of flag I can use to have the autocomplete function of Google Places return distance from device? Am I using the wrong API/function?
I am currently using the following function:
autocompleteQuery:bounds:filter:callback:
Documentation is here: