RoutePoint
public struct RoutePoint
                Represents a route point together with its distance offset along the route and estimated travel time.
- 
                  
                  
Creates an instance of
RoutePoint.Declaration
Swift
public init(coordinate: CLLocationCoordinate2D, routeOffset: Measurement<UnitLength>, travelTime: Measurement<UnitDuration>)Parameters
coordinateCLLocationCoordinate2Dfrom theRoutepolyline.routeOffsetThe distance offset along the route.
travelTimeTravel time (including traffic delay) from the start of the route.
 
- 
                  
                  
CLLocationCoordinate2Dfrom theRoutepolyline.Declaration
Swift
public let coordinate: CLLocationCoordinate2D - 
                  
                  
The distance offset along the route.
Declaration
Swift
public let routeOffset: Measurement<UnitLength> - 
                  
                  
Travel time (including traffic delay) from the start of the route.
Declaration
Swift
public let travelTime: Measurement<UnitDuration> 
- 
                  
                  
Calculates the geographic distance from this
coordinateto thecoordinategiven as an argument.Declaration
Swift
public func distance(to otherCoordinate: CLLocationCoordinate2D) -> Measurement<UnitLength>Parameters
otherCoordinateA coordinate for calculation.
Return Value
Calculated distance.
 - 
                  
                  
Calculates the angle (bearing) between this
coordinateand thecoordinategiven as an argument.Declaration
Swift
public func angle(to otherCoordinate: CLLocationCoordinate2D) -> DoubleParameters
otherCoordinateA coordinate for calculation.
Return Value
Calculated angle.
 
        
 
          TomTom SDK for iOS (0.51.1)
        
          RoutePoint