[gnome-maps/wip/mlundblad/transit-routing: 5/26] routeQuery: Add support for transit mode
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/transit-routing: 5/26] routeQuery: Add support for transit mode
- Date: Mon, 6 Feb 2017 07:18:45 +0000 (UTC)
commit d9fd945bd9b943b9140e1475bc3955d6e76ff553
Author: Marcus Lundblad <ml update uu se>
Date: Thu Mar 17 21:32:13 2016 +0100
routeQuery: Add support for transit mode
https://bugzilla.gnome.org/show_bug.cgi?id=755808
src/routeQuery.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/routeQuery.js b/src/routeQuery.js
index 1be3994..034d123 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() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]