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
coordinate
The 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
coordinate
The OTRGeoPoint to use.
Return Value
A TGGeoPoint structure.
-
Create a TGGeoPoint from a CoreLocation location object
Declaration
Swift
public init(location: CLLocation)
Parameters
location
The location object to use
Return Value
A TGGeoPoint structure.
-
Declaration
Swift
public static func == (lhs: TGGeoPoint, rhs: TGGeoPoint) -> Bool