CUTR-at-USF / gtfs-osm-sync

Synchronizes public transportation data in GTFS format with OpenStreetMap.org
Other
91 stars 18 forks source link

Does the tool it support providers which are not in the list? #49

Open amenk opened 5 years ago

amenk commented 5 years ago

I try to load data for an Ethiopian Transport network, but it crashes:

Reading the file: agency.txt Size: -1
Reading the file: stops.txt Size: -1
Reading the file: routes.txt Size: -1
Reading the file: trips.txt Size: -1
Reading the file: stop_times.txt Size: -1
Reading the file: shapes.txt Size: -1
Reading the file: calendar.txt Size: -1
Files have been written
Agency Name: Anbessa City Bus Service Enterprise
java.lang.ArrayIndexOutOfBoundsException: 3 [Ljava.lang.StackTraceElement;@5afc0401
Done...!!

I tried the normal release and this one:

https://github.com/reubot/gtfs-osm-sync/releases/tag/2017-changes

Is that a bug or do I somehow have to add the Network?

barbeau commented 5 years ago

Looks like maybe it's having problems reading the Ethiopian Transport GTFS zip file?

amenk commented 5 years ago

But which kind of?

barbeau commented 5 years ago

@amenk Sorry, I don't understand. Could you be more specific about the exact steps you're performing, what you expect to see, and what you actually see?

amenk commented 5 years ago

I Ioad the file and then the window just closes. It does not even seem to download data from OSM for syncing.

barbeau commented 5 years ago

Can you post the GTFS file you're using?

amenk commented 5 years ago

I have to check, if I am allowed to. Thank you so far.

doronbehar commented 2 years ago

I also have a similar issue with the Israel's GTFS file. It's available here:

ftp://gtfs.mot.gov.il/israel-public-transportation.zip

I get with it the error:

java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 7 [Ljava.lang.StackTraceElement;@19eccbf

And afterwards it exits. It seems that the problem is that the GTFS zip file holds a combination of the data of all 32 agencies. Here's the layout of the zip file:

agency.txt
calendar.txt
fare_attributes.txt
fare_rules.txt
routes.txt
shapes.txt
stops.txt
stop_times.txt
translations.txt
trips.txt
doronbehar commented 2 years ago

For reference, I think my issue is this:

https://github.com/CUTR-at-USF/gtfs-osm-sync/blob/ef4635426a94ce88f5224675bfc07517ee7f9f04/GO_Sync/src/main/java/edu/usf/cutr/go_sync/io/GTFSReadIn.java#L50-L51