Пример #1
0
        /// <summary>
        /// Tests routing from a serialized routing file.
        /// </summary>
        public static void Test(Stream stream, int testCount)
        {
            var box = new GeoCoordinateBox(
                new GeoCoordinate(51.20190, 4.66540),
                new GeoCoordinate(51.30720, 4.89820));

            LiveRoutingTest.TestSerializedRouting("LiveRouting",
                                                  stream, box, testCount);
        }
Пример #2
0
        /// <summary>
        /// Tests routing from a serialized routing file.
        /// </summary>
        public static void TestSerializedRouting(string name, string routeFile, int testCount)
        {
            var testFile = new FileInfo(string.Format(@".\TestFiles\{0}", routeFile));
            var stream   = testFile.OpenRead();

            LiveRoutingTest.TestSerializedRouting(name, stream, testCount);

            stream.Dispose();
        }
Пример #3
0
        /// <summary>
        /// Tests the live routing.
        /// </summary>
        public static void Test()
        {
            var box = new GeoCoordinateBox(
                new GeoCoordinate(51.20190, 4.66540),
                new GeoCoordinate(51.30720, 4.89820));

            LiveRoutingTest.TestSerializedRouting("LiveRouting",
                                                  "kempen-big.osm.pbf", box, 2500);
        }
Пример #4
0
 /// <summary>
 /// Tests routing from a serialized routing file.
 /// </summary>
 public static void Test(Stream stream, int testCount)
 {
     LiveRoutingTest.TestSerializedRouting("LiveRouting",
                                           stream, testCount);
 }
Пример #5
0
 /// <summary>
 /// Tests the live routing.
 /// </summary>
 public static void Test()
 {
     LiveRoutingTest.TestSerializedRouting("LiveRouting",
                                           "kempen-big.osm.pbf", 250);
 }