private static void CallGetPriceEstimate(string baseUrl) { //var di = direction.GetDirectionDistance(51.434028, -0.526826, 51.5035709, -0.199753); Console.WriteLine("Calling CallGetPriceEstimate web service " + baseUrl); var orderService = new WebOrder7Service { Url = baseUrl + "IWebOrder_7" }; try { var oio = new TBookOrder_7 { OrderStatus = TWEBOrderStatusValue.wosPriceQry, PickupAddress = new TWEBAddress { Latitude = 45.3417, Longitude = -75.9233 }, DropoffAddress = new TWEBAddress { Latitude = 45.2897, Longitude = -75.8756 } }; double fare; double toll; double distance; orderService.EstimateFare("taxi", "test", oio, out fare, out toll, out distance); //var vehicles = orderService.GetAvailableVehicles("taxi", "test", 45.3417, -75.9233, 10000, 10000); //if (vehicles.Count() == 0) //{ // Console.WriteLine("Call made sucesfully but no vehicle found"); //} //foreach (var c in vehicles) //{ // Console.WriteLine(string.Format("Vehicle found #{0} , Postion {1} / {2}", c.VehicleNumber, c.Latitude, c.Longitude)); //} } catch (Exception ex) { Console.WriteLine(ex.Message); } }