I am trying to get this API working:
http://wiki.openstreetmap.org/wiki/Gosmore#Cgi_Routing_Interface
Gosmore is installed and I've tried to execute it using this code:
Dim proc As New ProcessStartInfo
proc.EnvironmentVariables.Add("QUERY_STRING", "flat=57.69819&flon=11.97485&tlat=57.69819&tlon=11.97490&fast=0&v=motorcar")
proc.FileName = "C:\Program Files\Gosmore\gosmore.exe"
proc.UseShellExecute = False
proc.WindowStyle = ProcessWindowStyle.Hidden
proc.RedirectStandardInput = True
proc.RedirectStandardOutput = True
_p1 = New Process()
_p1.StartInfo = proc
_p1.Start()
Dim Reader = _p1.StandardOutput
Console.Write(Reader.ReadToEnd)
I get nothing in return. Must I install it on webserver to make it work?