CLLocation
extension CLLocation
-
Returns a dictionary representation of the location.
Declaration
Swift
public var dictionaryRepresentation: [String : Any] { get }
-
Returns a Boolean value indicating whether the receiver is within a given distance of a route step.
Declaration
Swift
func isWithin(_ maximumDistance: CLLocationDistance, of routeStep: RouteStep) -> Bool
-
Calculates the proper coordinates to use when calculating a snapped location.
Declaration
Swift
func snappingPolyline(for routeProgress: RouteProgress) -> LineString
-
Given a location and a series of coordinates, compute what the course should be for a the location.
Declaration
Swift
func interpolatedCourse(along polyline: LineString) -> CLLocationDirection?
-
Determines if the a location is qualified enough to allow the user puck to become unsnapped.
Declaration
Swift
func shouldSnap(toRouteWith course: CLLocationDirection, distanceToFirstCoordinateOnLeg: CLLocationDistance = CLLocationDistanceMax) -> Bool