gtfs2RouteLines: Convert GTFS Route, Trip, and Shape File to SF Linestring...

Description Usage Arguments Value

View source: R/gtfs2sf.R

Description

This function loads and joins gtfs route.txt, trip.txt, and shape.txt files identifies route colors (if present) and returns an sf object of linestring features for each shape. Each output record contains both a shape_id and route_id for easy filtering.

Usage

1
gtfs2RouteLines(routesDf_GTFS, tripsDf_GTFS, shapesDf_GTFS)

Arguments

routesDf_GTFS

routes.txt gtfs data.table file

tripsDf_GTFS

trips.txt gtfs data.table file

shapesDf_GTFS

shapes.txt gtfs data.table file

Value

A sf object of route geometry linestrings


b-tomhave/gtfsFunctions documentation built on Dec. 19, 2021, 6:37 a.m.