package com.jiuqi.mobile.lbs.intf.pub; import java.io.IOException; import java.net.MalformedURLException; //apis public class GisDaoImpl { public String getText1(double longitude, double latitude) { String strUrl = new String(); // strUrl = "http://search1.mapabc.com/sisserver?config=POSDES&x1=" + // dLon + "&y1=" + dLat // + // "&a_k=b0a7db0b3a30f944a21c3682064dc70ef5b738b062f6479a5eca39725798b1ee300bd8d5de3a4ae3"; strUrl = "http://search1.mapabc.com/sisserver?config=POSDES&enc=UTF-8&x1=" + longitude + "&y1=" + latitude + "&a_k=b0a7db0b3a30f944a21c3682064dc70ef5b738b062f6479a5eca39725798b1ee300bd8d5de3a4ae3"; String text = null; // �õ����������� // GetUrl getUrl = new GetUrl(); // text = getUrl.GetUrlResult(strUrl); try { text = GisInfo.request(strUrl); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } String temp = new String(""); String[] textSet = text.split(";"); for (int i = 1; i < textSet.length; i++) { temp = temp + textSet[i]; } return temp; } }