I'm using Google places autocomplete iOS API (as instructed here)
I need to sort the results to show the nearest places first. Can I do this using the iOS API? if yes, please point me to a reference or something.
Thanks
I'm using Google places autocomplete iOS API (as instructed here)
I need to sort the results to show the nearest places first. Can I do this using the iOS API? if yes, please point me to a reference or something.
Thanks
I think the easiest is to get the user's location, then calculate the distance between each point and the user like this
Calculate distance between two place using latitude-longitude in gmap for iPhone
then order it by the distance.