remulasce / metroapp

Realtime arrival notification utility for LA Metro
2 stars 0 forks source link

GTFS parsing failure when trains are "leaving" #294

Closed remulasce closed 8 years ago

remulasce commented 8 years ago

Exception: 07-30 19:18:15.781 11747-14433/com.remulasce.lametroapp W/LaMetroUtil﹕ Unaddressed exception! Invalid int: "Leaving"

Looks like GTFS returns literally the text "leaving" in the field occasionally. See attached return message.

07/30/2015 Embarcadero EMBR Daly City DALY 12 1 South 8 BLUE #0099cc 1 26 1 South 8 BLUE #0099cc 1 41 1 South 8 BLUE #0099cc 1 Dublin/Pleasanton DUBL 13 2 North 9 BLUE #0099cc 1 30 2 North 9 BLUE #0099cc 1 50 2 North 9 BLUE #0099cc 1 Millbrae MLBR Leaving 1 South 9 RED #ff0000 1 Pittsburg/Bay Point PITT 10 2 North 10 YELLOW #ffff33 1 24 2 North 10 YELLOW #ffff33 1 43 2 North 9 YELLOW #ffff33 1 Richmond RICH 2 2 North 8 RED #ff0000 1 17 2 North 9 RED #ff0000 1 36 2 North 9 RED #ff0000 1 SFO/Millbrae MLBR 8 1 South 10 YELLOW #ffff33 1 23 1 South 10 YELLOW #ffff33 1 38 1 South 2 YELLOW #ffff33 1
nighelles commented 8 years ago

Lol

On Thursday, July 30, 2015, remulasce notifications@github.com wrote:

Exception: 07-30 19:18:15.781 11747-14433/com.remulasce.lametroapp W/LaMetroUtil﹕ Unaddressed exception! Invalid int: "Leaving"

Looks like GTFS returns literally the text "leaving" in the field occasionally. See attached return message.

<![CDATA[ http://api.bart.gov/api/etd.aspx?cmd=etd&orig=EMBR ]]>

07/30/2015 07:18:03 PM PDT

Embarcadero EMBR

Daly City DALY

12 1 South 8 BLUE

0099cc

1

26 1 South 8 BLUE

0099cc

1

41 1 South 8 BLUE

0099cc

1

Dublin/Pleasanton DUBL

13 2 North 9 BLUE

0099cc

1

30 2 North 9 BLUE

0099cc

1

50 2 North 9 BLUE

0099cc

1

Millbrae MLBR

Leaving 1 South 9 RED

ff0000

1

Pittsburg/Bay Point PITT

10 2 North 10 YELLOW

ffff33

1

24 2 North 10 YELLOW

ffff33

1

43 2 North 9 YELLOW

ffff33

1

Richmond RICH

2 2 North 8 RED

ff0000

1

17 2 North 9 RED

ff0000

1

36 2 North 9 RED

ff0000

1

SFO/Millbrae MLBR

8 1 South 10 YELLOW

ffff33

1

23 1 South 10 YELLOW

ffff33

1

38 1 South 2 YELLOW

ffff33

1

— Reply to this email directly or view it on GitHub https://github.com/remulasce/metroapp/issues/294.

nighelles commented 8 years ago

In the minutes place? I can't read the xml, just the text.

remulasce commented 8 years ago

Yes. Minutes place reads "leaving" or some text instead of a number On Jul 31, 2015 12:02 AM, "Nighelles David" notifications@github.com wrote:

In the minutes place? I can't read the xml, just the text.

— Reply to this email directly or view it on GitHub https://github.com/remulasce/metroapp/issues/294#issuecomment-126587745.