即地理/逆地理编码,直接查看高德api即可
https://lbs.amap.com/api/webservice/guide/api/georegeo/
例 方法:
/**
* 接口调用 GET 高德api 地理编码 (逆地理编码)
* @param addr 地点名称
* @return
*/
public static String httpURLConectionGET(String addr) {
String GET_URL = "http://restapi.amap.com/v3/geocode/geo?key=159e59e9d821c7ea5d117b7fd6da4fc1&output=JSON"
+ "&address=" + addr;
try {
URL url = new URL(GET_URL); // 把字符串转换为URL请求地址
HttpURLConnection connection = (HttpURLConnection) url.openConnection();// 打开连接
connection.connect();// 连接会话
// 获取输入流
BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String line;
StringBuilder sb = new StringBuilder();
while ((line = br.readLine()) != null) {// 循环读取流
sb.append(line);
}
br.close();// 关闭流
connection.disconnect();// 断开连接
System.out.println("Get==" + sb.toString());
return sb.toString();
} catch (Exception e) {
e.printStackTrace();
System.out.println("失败!");
return "";
}
}
//调用示例
httpURLConectionGET("京津鲁冀产业园");
电子地图坐标拾取系统
百度地图——拾取坐标系统
网址:http://api.map.baidu.com/lbsapi/getpoint/index.html
谷歌地图——自带坐标获取
网址:https://www.google.com/maps/
操作:右键需要获取坐标的点,点击右键菜单中的【这儿有什么?】
高德地图——高德开放平台
网址:https://lbs.amap.com/console/show/picker
腾讯地图——坐标拾取器
网址:https://lbs.qq.com/tool/getpoint/