diff options
author | Marcus Lundblad <ml@update.uu.se> | 2016-03-17 21:32:13 +0100 |
---|---|---|
committer | Marcus Lundblad <ml@update.uu.se> | 2017-02-15 20:49:50 +0100 |
commit | f832dfb7d2ac939023ab8148a814770f37a53415 (patch) | |
tree | 840a110baca9212561178b81a51960dcaaa7a502 /src/routeQuery.js | |
parent | 8d88f7f8c17f3a8f2f82f046fd2abd7af1d6b53a (diff) | |
download | gnome-maps-f832dfb7d2ac939023ab8148a814770f37a53415.tar.gz |
routeQuery: Add support for transit mode
https://bugzilla.gnome.org/show_bug.cgi?id=755808
Diffstat (limited to 'src/routeQuery.js')
-rw-r--r-- | src/routeQuery.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routeQuery.js b/src/routeQuery.js index 1be39943..034d1237 100644 --- a/src/routeQuery.js +++ b/src/routeQuery.js @@ -31,12 +31,14 @@ const Transportation = { CAR: 0, BIKE: 1, PEDESTRIAN: 2, + TRANSIT: 3, toString: function (transportation) { switch(transportation) { case Transportation.CAR: return 'car'; case Transportation.BIKE: return 'bike'; case Transportation.PEDESTRIAN: return 'foot'; + case Transportation.TRANSIT: return 'transit'; default: return null; } } @@ -91,7 +93,8 @@ const RouteQuery = new Lang.Class({ GObject.ParamFlags.WRITABLE, Transportation.CAR, Transportation.PEDESTRIAN, - Transportation.CAR) + Transportation.CAR, + Transportation.TRANSIT) }, get points() { |