Calculate and display distance between userlocation and known point in Table View
Posted
by Claudio
on Stack Overflow
See other posts from Stack Overflow
or by Claudio
Published on 2010-06-10T13:22:07Z
Indexed on
2010/06/10
15:32 UTC
Read the original article
Hit count: 324
Hi, I have a table view with a list of hotel, and i want put in cell.detailTextLabel.text the distance beetween userlocation and hotel. How can obtain the coordinates of userlocation? I see on web that i need to use CLLocationManager but i don't understand how and where implement in my table view. Then,to get the distance,i do a "getDistancefrom" between userLocation and the coordinates of the hotel ? Thanks
© Stack Overflow or respective owner