示例#1
0
文件: map.cs 项目: andyshao/aushelper
 /// <summary>
 /// Get data accordingly.
 /// </summary>
 /// <returns></returns>
 public string GetData()
 {
     StringBuilder sb = new StringBuilder();
     switch (gMapType)
     {
         case G_MAP.G_Unknown:
             Help help = new Help(Engine.CTYPE.C_MAP);
             sb.Append(help.getHelp());
             break;
         case G_MAP.G_GetAddress:
             getAddress = new GetAddressFromCoordinates();
             sb.Append(getAddress.GetAddress(uMsg.Replace(" ", "")));
             break;
         case G_MAP.G_GetCoordinates:
             getCoordinates = new GetCoordinatesFromAddress();
             sb.Append(getCoordinates.GetCoordinates(System.Web.HttpUtility.UrlEncode(uMsg.Trim())));
             break;
     }
     return sb.ToString();
 }
示例#2
0
        /// <summary>
        /// Get data accordingly.
        /// </summary>
        /// <returns></returns>
        public string GetData()
        {
            StringBuilder sb = new StringBuilder();

            switch (gMapType)
            {
            case G_MAP.G_Unknown:
                Help help = new Help(Engine.CTYPE.C_MAP);
                sb.Append(help.getHelp());
                break;

            case G_MAP.G_GetAddress:
                getAddress = new GetAddressFromCoordinates();
                sb.Append(getAddress.GetAddress(uMsg.Replace(" ", "")));
                break;

            case G_MAP.G_GetCoordinates:
                getCoordinates = new GetCoordinatesFromAddress();
                sb.Append(getCoordinates.GetCoordinates(System.Web.HttpUtility.UrlEncode(uMsg.Trim())));
                break;
            }
            return(sb.ToString());
        }