Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in names(agency) <- seq(1, length(agency)) : 'names' attribute [2] must be the same length as the vector [0] #59

Open
barsinolarushu opened this issue Sep 27, 2023 · 0 comments

Comments

@barsinolarushu
Copy link

Dears, I am trying to use the transxchange2gtfs() function to turn some xml files of the bus network providers to GTFS. I am having success in most of these, but i am finding an error in one of the files im trying to convert. your help would be much appreciated:

Below the code and error:
gtfs_4_FBSM_PK1147727_10_8_2023_02_20 <- transxchange2gtfs(path_3)
2023-09-27 16:23:54.176022 This will take some time, make sure you use 'ncores' to enable multi-core processing

Scottish holidays are downloaded but not properly supported
2023-09-27 16:25:30.965299 Importing TransXchange files, single core
2023-09-27 16:25:31.415763 Converting to GTFS, single core
Error in FUN(X[[i]], ...) : Unknown timepoint type: timeInfoPoint

Failed to convert files:
4_FBSM_PK1147727_10_8_2023-02-20.xml with error Error in FUN(X[[i]], ...) : Unknown timepoint type: timeInfoPoint

Error in names(agency) <- seq(1, length(agency)) :
'names' attribute [2] must be the same length as the vector [0]
Merging failed, returing unmerged GFTS object for analysis

gtfs_merge(gtfs_4_FBSM_PK1147727_10_8_2023_02_20, force = TRUE, quiet = TRUE)
Error in names(agency) <- seq(1, length(agency)) :
'names' attribute [2] must be the same length as the vector [0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant