assert_shapes_fields: Assert the shapes (and trips) fields needed to work with...

View source: R/shapes_helpers.R

assert_shapes_fieldsR Documentation

Assert the shapes (and trips) fields needed to work with shapes

Description

Asserts that shapes has shape_id, shape_pt_lat, shape_pt_lon and shape_pt_sequence, with the expected classes, and, if trips = TRUE, first that trips has trip_id and shape_id.

Usage

assert_shapes_fields(gtfs, trips = TRUE)

Arguments

gtfs

A GTFS object.

trips

Whether to also check the trips fields.

Value

Invisibly, TRUE.


gtfstools documentation built on Oct. 28, 2026, 5:13 p.m.