@situm/react-native
    Preparing search index...

    Type Alias RouteStep

    A fragment of a route, described by the initial point from and the last point to of the fragment, and some information about the step within the route.

    type RouteStep = {
        distance: number;
        distanceToGoal: number;
        from: Point;
        id: number;
        isFirst: boolean;
        isLast: boolean;
        to: Point;
    }
    Index

    Properties

    distance: number

    Distance between from and to in meters

    distanceToGoal: number

    Distance in meters between the start point of this step (from) and the last point in the route ('to' of the last step)

    from: Point

    Start point of this step

    id: number

    Position of this RouteStep in the list of steps (Route.steps) of the route to which it belongs

    isFirst: boolean

    Returns true if this is the first step in the route

    isLast: boolean

    Returns true if this is the last step in the route

    to: Point

    End point of this step