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



commit 17e69d7eda571534683e86f1b9d04b69e77e7169
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.

 po/POTFILES.in                              | 2 +-
 src/org.gnome.Maps.src.gresource.xml        | 2 +-
 src/routingDelegator.js                     | 2 +-
 src/{ => transitplugins}/openTripPlanner.js | 0
 4 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 39a716a..529f516 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -39,7 +39,6 @@ src/graphHopper.js
 src/layersPopover.js
 src/mainWindow.js
 src/mapView.js
-src/openTripPlanner.js
 src/osmConnection.js
 src/osmEditDialog.js
 src/photonParser.js
@@ -59,3 +58,4 @@ src/transitOptionsPanel.js
 src/transitPlan.js
 src/translations.js
 src/utils.js
+src/transitplugins/openTripPlanner.js
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]