Convert CLLocationCoordinate2D to double or int swift -
how convert cllocationcoordiante double can perorrm arithmetic on , compare coordinates using size? in (swift ios)
cllocationcoordinate2d
struct of latitude
, longitude
both defined cllocationdegrees
typealias of double
.
the following code creates location in code, supplied mapkit function:
var location = cllocationcoordinate2d(latitude: 10.30, longitude: 44.34)
you can access values calling location.latitude
, location.longitude
.
Comments
Post a Comment