<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>
<property name="url-stop-ll">&loc=%s,%s</property>
<property name="url-via-ll">&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>
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 );
}