Closed jeanbaptistemarie closed 3 years ago
This could be some new tiplocs have you tried locations = "file"
in atoc2gtfs
?
I created the gtfs again using locations = "file"
in atoc2gtfs
This time the stop id that is missing is "UPMNLT"
Exception in thread "main" org.onebusaway.csv_entities.exceptions.CsvEntityIOException: io error:
entityType=org.onebusaway.gtfs.model.StopTime path=stop_times.txt lineNumber=5672
Caused by: org.onebusaway.gtfs.serialization.EntityReferenceNotFoundException:
entity reference not found: type=org.onebusaway.gtfs.model.Stop id=UPMNL
Is there option I can use to get it up and running? Many thanks
The quickest solution is to make your own locations object.
You can load the tiplocs
table that comes with the package and add any missing stops. The CIF file comes with its own locations data which is what you use when locations = "file"
but the data is often low quality (stops in the wrong place), or missing. This is why the default is locations = tiplocs
. I periodically update the tiplocs
table but clearly, it is now out of date.
You can also use gtfs_validate_internal
rather than having to build an OTP graph to find problems with the GTFS file.
https://itsleeds.github.io/UK2GTFS/reference/gtfs_validate_internal.html
The function is not documented well, but should give clear warnings for some basic errors
Yep, there are 41 new tiplocs
As some are in Norway, the will need manually fixing before adding to the package.
I've pushed some new tiplocs, you will need to reinstall the package.
The Norway ones are a mystery, they don't represent a real location
Thank you for updating the tiploc table. I will rebuild the graph and let you know here how things worked out
I used UK2GTFS to build a GTFS archive from ATOC ttis725.zip
The OTP graphs build fails because of stop ids missing. I stopped after adding manually eight missing IDs in the file stops.txt when trying to make the building work.
Errors reported by graph building:
Caused by: org.onebusaway.gtfs.serialization.EntityReferenceNotFoundException: entity reference not found: type=org.onebusaway.gtfs.model.Stop id= WMBYEFR
Caused by: org.onebusaway.gtfs.serialization.EntityReferenceNotFoundException: entity reference not found: type=org.onebusaway.gtfs.model.Stop id= ASHFKI
Caused by: org.onebusaway.gtfs.serialization.EntityReferenceNotFoundException: entity reference not found: type=org.onebusaway.gtfs.model.Stop id= MNCRAMM
Caused by: org.onebusaway.gtfs.serialization.EntityReferenceNotFoundException: entity reference not found: type=org.onebusaway.gtfs.model.Stop id= MNCRAML
Caused by: org.onebusaway.gtfs.serialization.EntityReferenceNotFoundException: entity reference not found: type=org.onebusaway.gtfs.model.Stop id= MNCRANC
Caused by: org.onebusaway.gtfs.serialization.EntityReferenceNotFoundException: entity reference not found: type=org.onebusaway.gtfs.model.Stop id= MNCRASM
Caused by: org.onebusaway.gtfs.serialization.EntityReferenceNotFoundException: entity reference not found: type=org.onebusaway.gtfs.model.Stop id= MNCRALM
Caused by: org.onebusaway.gtfs.serialization.EntityReferenceNotFoundException: entity reference not found: type=org.onebusaway.gtfs.model.Stop id= MNCRAWM