get_shapes: Infer Straight-Line Shapes from Stop Sequences

View source: R/get_shapes.R

get_shapesR Documentation

Infer Straight-Line Shapes from Stop Sequences

Description

Builds one shape for each unique ordered stop pattern and assigns it to the corresponding trips.

Usage

get_shapes(gtfs)

Arguments

gtfs

A GTFS object.

Details

Consecutive stop coordinates are connected directly. The result is useful for visualization and approximate distance analysis, but it is not a map-matched representation of the vehicle path.

Value

A 'wizardgtfs' object with a new 'shapes' table and updated 'trips$shape_id'.

See Also

[GTFSwizard::get_shapes_sf()], [GTFSwizard::get_shapes_df()]

Examples

gtfs_with_shapes <- get_shapes(for_rail_gtfs)


GTFSwizard documentation built on Aug. 21, 2026, 5:16 p.m.