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

ATOC Stop IDs missing #29

Closed
jeanbaptistemarie opened this issue Apr 29, 2021 · 7 comments
Closed

ATOC Stop IDs missing #29

jeanbaptistemarie opened this issue Apr 29, 2021 · 7 comments

Comments

@jeanbaptistemarie
Copy link

jeanbaptistemarie commented Apr 29, 2021

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

@mem48
Copy link
Contributor

mem48 commented Apr 30, 2021

This could be some new tiplocs have you tried locations = "file" in atoc2gtfs ?

@jeanbaptistemarie
Copy link
Author

jeanbaptistemarie commented May 2, 2021

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

@mem48
Copy link
Contributor

mem48 commented May 8, 2021

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.

@mem48
Copy link
Contributor

mem48 commented May 8, 2021

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

@mem48
Copy link
Contributor

mem48 commented May 8, 2021

Yep, there are 41 new tiplocs

image

As some are in Norway, the will need manually fixing before adding to the package.

@mem48
Copy link
Contributor

mem48 commented May 8, 2021

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

@jeanbaptistemarie
Copy link
Author

jeanbaptistemarie commented May 9, 2021

Thank you for updating the tiploc table. I will rebuild the graph and let you know here how things worked out

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

2 participants