/// <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(); }
/// <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()); }