[gnome-maps/wip/mlundblad/transit-routing: 4/15] routeQuery: Add ability to set options for transit routing
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/transit-routing: 4/15] routeQuery: Add ability to set options for transit routing
- Date: Thu, 2 Jun 2016 22:27:49 +0000 (UTC)
commit 69d7c18170ec6231bb80c28835cbe64bd5b4dc4b
Author: Marcus Lundblad <ml update uu se>
Date: Sun May 29 22:50:58 2016 +0200
routeQuery: Add ability to set options for transit routing
Adds the ability to set an options object specifying options when
performing a public transit route search. Currently contains options
for setting desired transportation modes.
src/routeQuery.js | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/routeQuery.js b/src/routeQuery.js
index 59edb3a..1151fd7 100644
--- a/src/routeQuery.js
+++ b/src/routeQuery.js
@@ -144,11 +144,21 @@ const RouteQuery = new Lang.Class({
this.notify('points');
},
+ get transitOptions() {
+ return this._transitOptions;
+ },
+
+ set transitOptions(options) {
+ this._transitOptions = options;
+ this.notify('points');
+ },
+
_init: function(args) {
this.parent(args);
this._points = [];
this._time = null;
this._date = null;
+ this._transitOptions = null;
this.reset();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]