Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert CLLocation to CLLocationDegrees

How can I convert CLLocation to CLLocationDegrees, so that I could create CLLocationCoordinate2D structure?

like image 896
rakeshNS Avatar asked Mar 28 '26 16:03

rakeshNS


1 Answers

Just get the CLLocationCoordinate2D directly from the coordinate property of CLLocation.

myLocationCoordinate2D = myLocation.coordinate;

Reference Docs

like image 186
MGA Avatar answered Mar 31 '26 09:03

MGA



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!