예제 #1
0
        public async System.Threading.Tasks.Task TestGetDistanceMatrixByIdAsync()
        {
            //localhost:9000/distance?q=ChIJ5YQQf1GHhYARPKG7WLIaOko&lat=27.7702036&lon=-82.6864508
            var id        = "ChIJh7E5A2mA3YgR2IsjfOXPfx8";
            var lat       = "27.7702036";
            var lon       = "-82.6864508";
            var _google   = new GoogleApi();
            var _distance = await _google.GetDistanceMatrixByIdAsync(lat, lon, id);

            Assert.IsTrue((_distance != null && _distance.status != "ok"), "Id was not found");
        }