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

            Process.Start("chrome.exe", url);
        }
Exemplo n.º 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");
        }