[gnome-maps/wip/mlundblad/transit-routing: 7/12] routeQuery: WIP: add	support for setting time and arrival/departure
- From: Marcus Lundblad <mlundblad src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-maps/wip/mlundblad/transit-routing: 7/12] routeQuery: WIP: add	support for setting time and arrival/departure
 
- Date: Thu, 17 Mar 2016 20:37:36 +0000 (UTC)
 
commit d57345e72b265bec7ebdc7bea6914a2c56ed5b08
Author: Marcus Lundblad <ml update uu se>
Date:   Mon Mar 14 23:34:26 2016 +0100
    routeQuery: WIP: add support for setting time and arrival/departure
    
    Adds a trip time and arrival/departure parameter, indicating if the
    time means "arrive no later than the time specified" or "depart not
    before the time specified".
    This would be used for transit routing.
 src/routeQuery.js |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/src/routeQuery.js b/src/routeQuery.js
index 43e38f6..4cc309e 100644
--- a/src/routeQuery.js
+++ b/src/routeQuery.js
@@ -112,6 +112,24 @@ const RouteQuery = new Lang.Class({
         return this._latest;
     },
 
+    get time() {
+        return this._time;
+    },
+
+    set time(datetime) {
+        this._time = datetime;
+        this.notify('points');
+    },
+
+    get arriveBy() {
+        return this._arriveBy;
+    },
+
+    set arriveBy(arriveBy) {
+        this._arriveBy = arriveBy;
+        this.notify('points');
+    },
+
     _init: function(args) {
         this.parent(args);
         this._points = [];
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]