[gnome-maps/wip/mlundblad/transit-service-discovery: 1/3] openTripPlanner: Don't take query from params



commit 8a72f6f9e9b088e811c7fbf1faf9266d0bc0e462
Author: Marcus Lundblad <ml update uu se>
Date:   Mon Aug 26 21:10:28 2019 +0200

    openTripPlanner: Don't take query from params
    
    Get the global route query instance directly from
    Application to avoid having to pass it from the
    transit provider router instance.

 src/transitplugins/openTripPlanner.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/transitplugins/openTripPlanner.js b/src/transitplugins/openTripPlanner.js
index 7303eb3..2a46756 100644
--- a/src/transitplugins/openTripPlanner.js
+++ b/src/transitplugins/openTripPlanner.js
@@ -128,8 +128,8 @@ var OpenTripPlanner = class OpenTripPlanner {
          * a download when first request
          */
         this._routersUpdatedTimestamp = 0;
-        this._query = params.query;
-        this._plan = new TransitPlan.Plan();
+        this._plan = Application.routingDelegator.transitRouter.plan;
+        this._query = Application.routeQuery;
         this._baseUrl = this._getBaseUrl();
         this._walkingRoutes = [];
         this._extendPrevious = false;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]