当前位置:网站首页>Gaode map -- obtain longitude and latitude according to geographical location
Gaode map -- obtain longitude and latitude according to geographical location
2022-06-22 01:21:00 【The ultimate journey】
Geography / Reverse geocoding , View Gaode directly api that will do
https://lbs.amap.com/api/webservice/guide/api/georegeo/
example Method :
/** * Interface call GET Gao de api Geocoding ( Reverse geocoding ) * @param addr Location name * @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); // Convert string to URL Request address
HttpURLConnection connection = (HttpURLConnection) url.openConnection();// Open the connection
connection.connect();// Connect conversation
// Get input stream
BufferedReader br = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String line;
StringBuilder sb = new StringBuilder();
while ((line = br.readLine()) != null) {
// Loop read stream
sb.append(line);
}
br.close();// Closed flow
connection.disconnect();// disconnect
System.out.println("Get==" + sb.toString());
return sb.toString();
} catch (Exception e) {
e.printStackTrace();
System.out.println(" Failure !");
return "";
}
}
// Invoke the sample
httpURLConectionGET(" Beijing Tianjin Luji Industrial Park ");
Electronic map coordinate picking system
Baidu Maps —— Pick the coordinate system
website :http://api.map.baidu.com/lbsapi/getpoint/index.html
Google Maps —— Self contained coordinate acquisition
website :https://www.google.com/maps/
operation : Right click the point where you want to obtain the coordinates , Click... In the right-click menu 【 What's here ?】
Gould map —— Gaud open platform
website :https://lbs.amap.com/console/show/picker
Tencent map —— Coordinate picker
website :https://lbs.qq.com/tool/getpoint/
边栏推荐
- English grammar_ Adverb - loud /aloud / loud
- Compilation principle - recursive descent subroutine method
- English grammar_ Adverb_ fairly / rather
- MySQL 8.0 新特性梳理汇总
- [cyw20189] VII. Detailed explanation of HCI command format
- Sparkrdd case: calculate total score
- Summary of new MySQL 8.0 features
- MSVC与GCC的差异(收集中)
- [Others] analysis of got and PLT in ELF
- Tensorflow environment setup
猜你喜欢

想加入大厂?看这篇文章也许会帮助到你

yolov3 3D 语义点云paper阅读

Simple sorting of RNN
![[cyw20189] VII. Detailed explanation of HCI command format](/img/ba/c61d4868e6c5da8460541c62649880.png)
[cyw20189] VII. Detailed explanation of HCI command format

The appearance, space, safety and power are all upgraded. The xinjietu x70s will be put on the market from 87900 yuan

消息队列之取消会议和自动退款处理

Special survey of moving average strategy

单点登录SSO与OAuth2 方案

Pytorch learning 07:broadcast broadcast - automatic extension

Broadening - simple strategy test
随机推荐
Pytorch learning 08: splicing and splitting
Some introduction and transplantation of lvgl
pm2 的学习
Integer和int区别
How to remove duplication in left join from a simple example
【Redis】ubuntu中安装redis以及redis的基本使用和配置
如何让自己的网站快速被搜索引擎找到
eVC4编的程序不能在emulator上运行
Virtual variables and formatting characters in debugging
Simple sorting of RNN
sed 技巧
cygwin下面用mysql client连接服务器的问题
Clean, compile, build, install, package differences
[gstreamer] plug in writing - Test Program
The appearance, space, safety and power are all upgraded. The xinjietu x70s will be put on the market from 87900 yuan
3 minutes, take you to play with chat robot automation [top template]
[redis] event driven framework source code analysis (single thread)
[environmental footprint] set up fastdfs on your own computer
Spark RDD case: word frequency statistics
Sending webhook of message queue to realize cross application asynchronous callback