[gnome-maps/wip/mlundblad/transit-routing: 4/17] 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/17] routeQuery: Add ability to set options for transit routing
- Date: Thu, 9 Jun 2016 20:26:27 +0000 (UTC)
commit b8d13d467e435b5f1818920a6b5ee1a05ad6d852
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]