Skip to content

Commit

Permalink
Merge branch 'coach_gtfs' into aubin-master
Browse files Browse the repository at this point in the history
  • Loading branch information
miklcct committed Sep 23, 2024
2 parents 37c7afc + bfbd2a2 commit d3fba68
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static TransitMode mapMode(int routeType) {
if (routeType >= 100 && routeType < 200) { // Railway Service
return TransitMode.RAIL;
} else if (routeType >= 200 && routeType < 300) { //Coach Service
return TransitMode.BUS;
return TransitMode.COACH;
} else if (routeType >= 300 && routeType < 500) { //Suburban Railway Service and Urban Railway service
if (routeType >= 401 && routeType <= 402) {
return TransitMode.SUBWAY;
Expand All @@ -30,11 +30,10 @@ public static TransitMode mapMode(int routeType) {
return TransitMode.RAIL;
} else if (routeType >= 500 && routeType < 700) { //Metro Service and Underground Service
return TransitMode.SUBWAY;
} else if (routeType >= 700 && routeType < 900) { //Bus Service and Trolleybus service
if (routeType == 800) {
return TransitMode.TROLLEYBUS;
}
} else if (routeType >= 700 && routeType < 800) { //Bus Service
return TransitMode.BUS;
} else if (routeType >= 800 && routeType < 900) { //Trolleybus Service
return TransitMode.TROLLEYBUS;
} else if (routeType >= 900 && routeType < 1000) { //Tram service
return TransitMode.TRAM;
} else if (routeType >= 1000 && routeType < 1100) { //Water Transport Service
Expand Down

0 comments on commit d3fba68

Please sign in to comment.