[gnome-maps/wip/mlundblad/transit-service-discovery: 1/3] openTripPlanner: Move to a separate directory



commit dfe02f02749b2ac0ae55976625f5c9c49689bb50
Author: Marcus Lundblad <ml update uu se>
Date:   Wed Aug 14 22:42:57 2019 +0200

    openTripPlanner: Move to a separate directory
    
    Move the OpenTripPlanner module to a subdirectory
    in preparation for supporting plugins for
    other transit services.

 src/org.gnome.Maps.src.gresource.xml        | 2 +-
 src/routingDelegator.js                     | 2 +-
 src/{ => transitplugins}/openTripPlanner.js | 0
 3 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/org.gnome.Maps.src.gresource.xml b/src/org.gnome.Maps.src.gresource.xml
index 337fe13..0ca0fc2 100644
--- a/src/org.gnome.Maps.src.gresource.xml
+++ b/src/org.gnome.Maps.src.gresource.xml
@@ -39,7 +39,6 @@
     <file>mapSource.js</file>
     <file>mapView.js</file>
     <file>mapWalker.js</file>
-    <file>openTripPlanner.js</file>
     <file>osmAccountDialog.js</file>
     <file>osmConnection.js</file>
     <file>osmEdit.js</file>
@@ -111,5 +110,6 @@
     <file alias="geojsonvt/tile.js">tile.js</file>
     <file alias="geojsonvt/transform.js">transform.js</file>
     <file alias="geojsonvt/wrap.js">wrap.js</file>
+    <file>transitplugins/openTripPlanner.js</file>
   </gresource>
 </gresources>
diff --git a/src/routingDelegator.js b/src/routingDelegator.js
index 6e02b21..57e956f 100644
--- a/src/routingDelegator.js
+++ b/src/routingDelegator.js
@@ -20,7 +20,7 @@
  */
 
 const GraphHopper = imports.graphHopper;
-const OpenTripPlanner = imports.openTripPlanner;
+const OpenTripPlanner = imports.transitplugins.openTripPlanner;
 const RouteQuery = imports.routeQuery;
 
 const _FALLBACK_TRANSPORTATION = RouteQuery.Transportation.PEDESTRIAN;
diff --git a/src/openTripPlanner.js b/src/transitplugins/openTripPlanner.js
similarity index 100%
rename from src/openTripPlanner.js
rename to src/transitplugins/openTripPlanner.js


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