• Returns a copy of the route options without the specified waypoint.

    If the route options is unable to copy itself by round-tripping through JSON, this method mutates the receiver’s waypoints as a last resort.

    Declaration

    Swift

    public func without(_ waypoint: Waypoint) -> DirectionsOptions

    Parameters

    waypoint

    the Waypoint to exclude.

    Return Value

    a copy of self excluding the specified waypoint.