[gnome-maps] transitPlan: Add additional transit types
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] transitPlan: Add additional transit types
- Date: Sat, 21 Mar 2020 13:37:57 +0000 (UTC)
commit 9b610c2d114c929fc2da5a7d0cd4500b51150737
Author: Marcus Lundblad <ml update uu se>
Date: Sat Mar 21 14:36:00 2020 +0100
transitPlan: Add additional transit types
There's a couple of additional types defined
for the "basic" route types that we are missing.
See: https://developers.google.com/transit/gtfs/reference/#routestxt
src/transitPlan.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/transitPlan.js b/src/transitPlan.js
index a63c07eb..d4331a9f 100644
--- a/src/transitPlan.js
+++ b/src/transitPlan.js
@@ -63,7 +63,11 @@ var RouteType = {
/* Funicular referres to a railway system designed for steep inclines,
* https://en.wikipedia.org/wiki/Funicular
*/
- FUNICULAR: 7
+ FUNICULAR: 7,
+ /* Electric buses that draw power from overhead wires using poles. */
+ TROLLEYBUS: 11,
+ /* Railway in which the track consists of a single rail or a beam. */
+ MONORAIL: 12
};
/* extra time to add to the first itinerary leg when it's a walking leg */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]