public void DisplayOnBrowser() { //AbstractMapUrlBuilder urlBuilder = new GoogleMapUrlBuilder(); string url = UrlDirector.CreateUrl(this.DestinationList, new GoogleStaticMapUrlBuilder()); Process.Start("chrome.exe", url); }
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"); }