private static void Trip4x(OsrmClient osrm) { var locations = new Location[] { new Location(52.503033, 13.420526), new Location(52.516582, 13.429290), }; var result = osrm.Trip(locations); }
public void Trip_Response() { var locations = new Location[] { new Location(52.503033, 13.420526), new Location(52.516582, 13.429290), }; var result = osrm.Trip(locations); CheckStatus200(result); Assert.AreEqual <int>(1, result.Trips.Length); Assert.IsTrue(result.Trips[0].Permutation.Length > 0); Assert.IsTrue(result.Trips[0].RouteName.Length > 0); Assert.IsTrue(result.Trips[0].RouteGeometry.Length > 0); }