RouteSegment: {
    __typename?: "RouteSegment";
    distance?: Maybe<Scalars["Float"]>;
    duration?: Maybe<Scalars["Float"]>;
    elevation: Elevation;
    geoJson?: Maybe<Scalars["JSON"]>;
    id: Scalars["ID"];
    mode: RouteMode;
    polyline?: Maybe<Scalars["String"]>;
    positions?: Maybe<Position[]>;
    useRouteSearching: Scalars["Boolean"];
}

One segment of a Route

Type declaration

  • Optional __typename?: "RouteSegment"
  • Optional distance?: Maybe<Scalars["Float"]>

    The estimated distance for this path

  • Optional duration?: Maybe<Scalars["Float"]>

    The estimated duration for this path

  • elevation: Elevation

    The estimated elevation details of this route

  • Optional geoJson?: Maybe<Scalars["JSON"]>

    The representation of this path as encoded as geojson FeatureCollection type

  • id: Scalars["ID"]

    WARNING: this ID is unstable, modifying the route might change the ID

  • mode: RouteMode

    The mode of transport to be taken. eg: car, walk, kayak, etc

  • Optional polyline?: Maybe<Scalars["String"]>

    The path representation as encoded as a polyline format

  • Optional positions?: Maybe<Position[]>

    The way positions along this route

  • useRouteSearching: Scalars["Boolean"]

    Whether this route was searched for

Generated using TypeDoc