欢迎来到天天文库
浏览记录
ID:19230071
大小:75.50 KB
页数:26页
时间:2018-09-30
《地区经纬度信息获取(利用google地图api获取)》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、地区经纬度信息获取(利用Google地图API获取)packagecom.leg3s.rld.util;importjava.io.BufferedReader;importjava.io.DataInputStream;importjava.io.DataOutputStream;importjava.io.IOException;importjava.io.InputStream;importjava.io.InputStreamReader;importjava.io.OutputStre
2、am;importjava.io.OutputStreamWriter;importjava.io.UnsupportedEncodingException;importjava.net.HttpURLConnection;importjava.net.URL;importjava.net.URLConnection;importjava.util.ArrayList;importjava.util.HashMap;importjava.util.List;importjava.util.Map
3、;importjava.util.Map.Entry;importorg.apache.log4j.Logger;/***地址经纬度信息获取工具类**@authorliuw*@createdate2010/01/18*/publicclassAddressLatLngUtil{privatestaticfinalStringREQUEST_ENCODE="UTF-8";privatestaticfinalStringADDRESS_KEY=""address"";privatestaticf
4、inalStringADDRESS_COUNTRY_KEY=""CountryName"";privatestaticfinalStringADDRESS_REGION_KEY=""AdministrativeAreaName"";privatestaticfinalStringADDRESS_CITY_KEY=""LocalityName"";privatestaticfinalStringADDRESS_POINT_KEY=""coordinates"";privatesta
5、ticfinalStringADDRESS_SPLIT_STR=":";privatestaticfinalStringLOCATION_COUNTRY_KEY=""country"";privatestaticfinalStringLOCATION_REGION_KEY=""region"";privatestaticfinalStringLOCATION_CITY_KEY=""city"";//privatestaticfinalStringLOCATION_POINT_KEY=
6、""location"";privatestaticfinalStringLOCATION_POINT_LATITUDE_KEY=""latitude"";privatestaticfinalStringLOCATION_POINT_LONGITUDE_KEY=""longitude"";privatestaticfinalStringLOCATION_POINT_PRECISIONY_KEY=""accuracy"";privatestaticfinalStringLOCATI
7、ON_SPLIT_STR=",";publicstaticfinalintMIN_ZOOM=11;publicstaticfinalintMAX_ZOOM=18;privatestaticfinalintDOWNNUM_FOR_PROXY=8000;privatestaticfinalintCONNECT_TIMEOUT=30000;//30秒privatestaticfinalintTHREAD_SLEEP_MILLIS=200;privatestaticbooleanflag=false;p
8、rivatestaticintdownNum=0;privatestaticStringproxyHost="165.228.128.10";privatestaticStringproxyPort="3128";privatestaticStringproxySet="true";privatestaticfinalLoggerlogger=Logger.getLogger(AddressLatLngUtil.class);/***获取地址详细信息及经纬度信息**@paramaddress*@
此文档下载收益归作者所有