예제 #1
0
        public void DisplayOnBrowser()
        {
            //AbstractMapUrlBuilder urlBuilder = new GoogleMapUrlBuilder();
            string url = UrlDirector.CreateUrl(this.DestinationList, new GoogleStaticMapUrlBuilder());

            Process.Start("chrome.exe", url);
        }
예제 #2
0
        public void SaveImage()
        {
            WebClient client = new WebClient();
            string    url    = UrlDirector.CreateUrl(this.DestinationList, new GoogleStaticMapUrlBuilder());


            int fileCount = Directory.GetFiles(saveDirectory).Count();

            client.DownloadFile(url, saveDirectory + "/route-" + fileCount + ".png");
        }