Driving directions documentation.
This is how the instructions is currently implemented in gosmore.php ($showInstructions is configured from the gosmore.php parameters):
if ($showInstructions) {
$command = $query." ./gosmore ".$pak. " 2>/dev/null | sed 'y/\"/_/' | ".
"(cd ../routing-instructions/src/tools/translations; LANG=".$lang." ../../../build/src/routing-instructions/routing-instructions --dense 2>/dev/null)";
} else {
$command = $query." ./gosmore ".$pak. " 2>/dev/null";
}
Test the results by calling e.g. http://www.yournavigation.org/api/dev/route.php?flat=43.917983006&flon=12.86139500&tlat=43.91087897&tlon=12.87468910&fast=1&v=bicycle&instructions=1
Note: route.php is a new script that functions as a proxy for route requests. There are currently two servers running the Gosmore route engine (one provided by yournavigation.org and one provided by Nic Roets - the author of Gosmore). Based on some simple decision rules the requests are relayed to any of the available servers (I could add more servers when they become available, even alternative routing engines if available).
The updated files should appear in SVN soon, but need some cleaning up first. The YOURS wiki page will also be updated accordingly ofcourse.