]> git.street.me.uk Git - andy/viking.git/commitdiff
Remove as OSRM routing option as it no longer supports GPX output.
authorRob Norris <rw_norris@hotmail.com>
Sun, 15 Jan 2017 18:49:10 +0000 (18:49 +0000)
committerRob Norris <rw_norris@hotmail.com>
Sun, 22 Jan 2017 18:23:56 +0000 (18:23 +0000)
doc/examples/routing.xml
src/osm.c

index d98403c00f5b31a45ac472a791dd6250fe108cdb..275a85a2ca785325cbae5a2e1814daf575892bd1 100644 (file)
@@ -1,4 +1,5 @@
 <objects>
+  <!-- Note that OSRM no longer supports GPX output, so this example no longer works -->
   <object class="VikRoutingWebEngine">
     <property name="id">osrm</property>
     <property name="label">OSRM</property>
@@ -8,6 +9,7 @@
     <property name="url-stop-ll">&amp;loc=%s,%s</property>
     <property name="url-via-ll">&amp;loc=%s,%s</property>
   </object>
+  <!-- Note this no longer works as Google format has changed and GPSBabel (at time of writing) doesn't understand it -->
   <object class="VikRoutingWebEngine">
     <property name="id">google</property>
     <property name="label">Google</property>
index 1321a416d50f6ad962044b4852e7fe17c5cc88ec..87694a8f44ed1c028b9d99382f1184371b0e032a 100644 (file)
--- a/src/osm.c
+++ b/src/osm.c
@@ -231,18 +231,5 @@ void osm_init () {
   webtool = vik_webtool_center_new_with_members ( _("Wikimedia Toolserver GeoHack"), "http://tools.wmflabs.org/geohack/geohack.php?params=%s;%s" );
   vik_ext_tools_register ( VIK_EXT_TOOL ( webtool ) );
   g_object_unref ( webtool );
-  
-  /* See API references: https://github.com/DennisOSRM/Project-OSRM/wiki/Server-api */
-  VikRoutingEngine *osrm = g_object_new ( VIK_ROUTING_WEB_ENGINE_TYPE,
-    "id", "osrm",
-    "label", "OSRM",
-    "format", "gpx",
-    "url-base", "http://router.project-osrm.org/viaroute?output=gpx",
-    "url-start-ll", "&loc=%s,%s",
-    "url-stop-ll", "&loc=%s,%s",
-    "url-via-ll", "&loc=%s,%s",
-    NULL);
-  vik_routing_register ( VIK_ROUTING_ENGINE ( osrm ) );
-  g_object_unref ( osrm );
 }