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

Begin ITSO card support #56

Closed
wants to merge 21 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add 1 more bus company and 9 more routes
I now have all 3 companies for which my ticket is valid

Route 300 thanks to @pandalion
  • Loading branch information
rjmunro committed Aug 19, 2013
commit cb28e8ef263a2770171e09ff1fda041b2b4c11d1
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,24 @@ public ItsoTrip setRoute(int routeID) {
}

private static SparseArray<String> routes = new SparseArray<String>() {{
put(0x0fff, "1");
put(0x1fff, "3");
put(0x27ff, "4");
put(0x22bf, "4A");
put(0x233f, "4C");
put(0x2fff, "5");
put(0x47ff, "8");
put(0x083f, "10");
put(0x087f, "11");
put(0x08ff, "13");
put(0x28ff, "U1");
put(0xc18d, "66");
put(0x1801, "300");
put(0x2001, "400");
put(0xC07f, "S1");
put(0xc87f, "T1");
put(0xc8ff, "T3");
put(0x28ff, "U1");
put(0x29bf, "U5");
put(0xe047, "X13");
}};

Expand All @@ -291,6 +300,7 @@ public String getRouteName() {
private static SparseArray<String> agencys = new SparseArray<String>() {{
put(0x0000, "Stagecoach");
put(0x206c, "Oxford Bus company");
put(0x207f, "Thames Travel");
}};

public ItsoTrip setAgency(int agencyID) {
Expand Down