r-transit / tidytransit

R package for working with GTFS data
https://r-transit.github.io/tidytransit/
150 stars 22 forks source link

bug fix: wrong shape ids in shapes_as_sf #141

Closed AlexandraKapp closed 4 years ago

AlexandraKapp commented 4 years ago

potentially wrong shape ids are returned from the function shapes_as_sf (e.g. Berlin GTFS Feed).

unique(gtfs_shapes$shape_id) does not necessarily have the same order of shape ids (because of the split function in line 49). Instead: use names(list_of_line_tibbles)

tbuckl commented 4 years ago

thanks @AlexandraKapp !