umts / BusInfoBoard

A place to view bus arrival information from Avail's JSON feed
Apache License 2.0
16 stars 3 forks source link

Normalize our departure_data to a default value #20

Closed bcspragu closed 9 years ago

bcspragu commented 9 years ago

Since departure_data is always a one-element array containing RouteDirections as far as we're concerned, we can set it to a default value of {RouteDirections: []} if we don't find that, and our code will function as if there are no trips.

werebus commented 9 years ago

That'll do it. Looks good. I'd suggest leaving the issue open until we have a definitive answer from Avail

sherson commented 9 years ago

:+1: