예제 #1
0
        public void TollsOnRouteWithExampleTest()
        {
            TollsOnRouteRequest request = JsonConvert.DeserializeObject <TollsOnRouteRequest>("{ \"departure_time\": \"2017-07-28T17:39:43.611Z\", \"steps\": [ { \"encoded_polyline\": \"iywaHjemiVCDEFEHMP\", \"road_name\": \"Lake Washington Blvd E\" }, { \"encoded_polyline\": \"gzwaHtfmiVCAWLYFUAs@S{@a@e@e@}@kAo@cAWi@g@eBm@gCcA{C]q@u@kAm@_Ag@q@s@gAg@aAUcAGgAA_CA_@JyDRiI`Bql@p@kHtB{Rv@oHfAcNvI}eAvOkkBbEwZlAoIp@{Et@cKhAmN\", \"road_name\": \"WA-520 E\" }, { \"encoded_polyline\": \"s|vaHnm`iVXwAh@aFPwBD{@H{ABg@@e@?Q?QAWAQ@IBQBIDKHKj@ONKLAN?^AF?\", \"road_name\": \"84th Ave NE\" } ], \"vehicle\": { \"axles\": 2 } }");

            var tollsGpsTracesResponse = CoordExtentions.Send(request);

            Assert.IsNotNull(tollsGpsTracesResponse);
        }
예제 #2
0
        public void GpsTracesWithSampleRequest()
        {
            TollsGpsTracesRequest request = JsonConvert.DeserializeObject <TollsGpsTracesRequest>(
                "{ \"locations\": [ { \"timestamp\": \"2017-07-28T17:39:00.000Z\", \"lat\": 47.28348, \"lng\": -122.56066 }, { \"timestamp\": \"2017-07-28T17:39:30.000Z\", \"lat\": 47.28154, \"lng\": -122.56069 }, { \"timestamp\": \"2017-07-28T17:40:00.000Z\", \"lat\": 47.28000, \"lng\": -122.56075 }, { \"timestamp\": \"2017-07-28T17:40:30.000Z\", \"lat\": 47.27901, \"lng\": -122.56081 }, { \"timestamp\": \"2017-07-28T17:41:00.000Z\", \"lat\": 47.27900, \"lng\": -122.56081 }, { \"timestamp\": \"2017-07-28T17:41:30.000Z\", \"lat\": 47.27831, \"lng\": -122.56082 }, { \"timestamp\": \"2017-07-28T17:42:00.000Z\", \"lat\": 47.27823, \"lng\": -122.56082 }, { \"timestamp\": \"2017-07-28T17:42:30.000Z\", \"lat\": 47.27798, \"lng\": -122.56082 } ], \"vehicle\": { \"axles\": 2 } }");

            var tollsGpsTracesResponse = CoordExtentions.Send(request);

            Assert.IsNotNull(tollsGpsTracesResponse);
        }