Esempio n. 1
0
        public string GetMapSrcString()
        {
            string[] vals = new string[] { StreetAddress, City, State, ZipCode };

            for (int i = 0; i < vals.Length; i++)
            {
                vals[i] = StreetAddress.Replace(' ', '+');
            }

            string srcString = "https://www.google.com/maps/embed/v1/place?key=AIzaSyC95F71hOI6L7Zp8n-6r1Jg3fYK36RrLQo&q=";

            for (var i = 0; i < vals.Length; i++)
            {
                string subString = "";
                if (i != 0)
                {
                    subString += ",+";
                }
                subString += vals[i];
                srcString += subString;
            }

            return(srcString);
        }