Exemplo n.º 1
0
        /// <summary>
        /// Tests routing from a serialized routing file.
        /// </summary>
        public static void Test(Stream stream, int testCount)
        {
            GeoCoordinateBox box = new GeoCoordinateBox(
                new GeoCoordinate(51.20190, 4.66540),
                new GeoCoordinate(51.30720, 4.89820));

            CHSerializedRoutingTest.TestSerializedRouting("CHSerializedRouting",
                                                          stream, box, testCount);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Tests routing from a serialized routing file.
        /// </summary>
        public static void TestSerializedRouting(string name, string routeFile,
                                                 GeoCoordinateBox box, int testCount)
        {
            FileInfo testFile = new FileInfo(string.Format(@".\TestFiles\routing\{0}", routeFile));
            Stream   stream   = testFile.OpenRead();

            CHSerializedRoutingTest.TestSerializedRouting(name, stream, box, testCount);

            stream.Dispose();
        }
Exemplo n.º 3
0
        /// <summary>
        /// Tests the CH pre-processor.
        /// </summary>
        public static void Test()
        {
            GeoCoordinateBox box = new GeoCoordinateBox(
                new GeoCoordinate(51.20190, 4.66540),
                new GeoCoordinate(51.30720, 4.89820));

            CHSerializedRoutingTest.TestSerializedRouting("CHSerializedRouting",
                                                          "kempen-big.osm.pbf.routing", box, 100);

            // test instructions.
            //CHSerializedRoutingTest.TestInstructions("CHSerializedRouting");
        }