TGGeoPoint
struct TGGeoPoint
Convenience extension to convert between the different coordinate systems in use
-
Creates a TGGeoPoint from a CoreLocation coordinate struct.
Declaration
Swift
public init(coordinate: CLLocationCoordinate2D)Parameters
coordinateThe CLLocationCoordinate2D struct to use.
Return Value
A TGGeoPoint structure.
-
Creates a TGGeoPoint from a On The Road Geopoint
Declaration
Swift
public init(coordinate: OTRGeoPoint)Parameters
coordinateThe OTRGeoPoint to use.
Return Value
A TGGeoPoint structure.
-
Create a TGGeoPoint from a CoreLocation location object
Declaration
Swift
public init(location: CLLocation)Parameters
locationThe location object to use
Return Value
A TGGeoPoint structure.
-
Declaration
Swift
public static func == (lhs: TGGeoPoint, rhs: TGGeoPoint) -> Bool
View on GitHub
TGGeoPoint Extension Reference