ここの例:
UITableViewCellの右側にあるコンパスを参照してください
を使用CLLocationManager
して現在地と進行方向を取得し、各座標の相対方向を計算します。
Use CLLocationManager to get the heading.
-(void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading {
CLLocationDirection true = [newHeading trueHeading];
CLLocationDirection magnetic = [newHeading magneticHeading];
}