0

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

nouf
  • 273
  • 4
  • 14

1 Answers1

0

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.

Bence Pattogato
  • 3,752
  • 22
  • 30