2
如何將lat lat轉換爲CLLocationCoordinate2D?convert lat long CLLocationCoordinate2D
如何將lat lat轉換爲CLLocationCoordinate2D?convert lat long CLLocationCoordinate2D
您可以用緯度/長,像這樣
- (id)initWithLatitude:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitude;
然後可以使用座標屬性來獲取CLLocationCoordinate2D值初始化CLLocation。
嗨感謝發現,我可以通過CLLocationCoordinate2D簡單地將lat long轉換爲clcoordinate2d new_coordinate = {lat,long1};謝謝 – devonsmith 2011-04-29 05:37:04