I wondered if anyone could help. I have setup osrm on a spare computer it is running on Ubuntu 14. It works fine and I can query it using the default car setting for transport. I would like to be able to setup and use different modes of transport ie foot and public transport as well. the query I send to osrm is this:
$json = file_get_contents("http://192.168.0.4:5000/viaroute?loc=$startlat,$startlong&loc=$endlat,$endlong&instructions=false&alt=false&geometry=false");