Surya Surya - 1 year ago 68
iOS Question

Calculate distance between user's location and a fixed location

I am receiving multiple restaurants' latitude/longitude from a server. I want to calculate the distance between each restaurant and the user's current latitude/longitude.

Answer Source

Once you have a list of places (one way or the other) you can the get the distance to (or from) these using CoreLocation to calculate this with distanceFromLocation:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download