In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to use open API to obtain data, which may not be well understood by many people. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.
Now commonly used Amap, Baidu Map, Tencent Map, etc., all have open API, and individual users can apply for development. By generating the developed key, they can call the API services of these maps. Of course, the number of API requests of individual users per day is limited, and it is generally enough for simple data query. In this way, we can still accumulate some commonly used map data according to API.
Amap's daily request limit is generally developed thousands of requests, of course, each time the amount of data is also limited.
For example, a commonly used POI search network service, according to some commonly used keywords, call API service, batch search out poi information, the key is to include map coordinate information, which allows us to display on the map.
Registering users for each map platform is an essential step, because this is the only way to get the key of the request API, which is required in API.
The API address of Amap's search POI:
Https://lbs.amap.com/api/webservice/guide/api/search .
There is a detailed request parameter URL configuration and a field description of the returned result.
Request parameters:
Return the result:
Request returns can be in json format.
The above search POI uses the request method of http, which can be supported in java, C #, python and other development languages.
For the problem of coordinates, the coordinates returned by Amap and Tencent are Mars coordinates, and the Baidu coordinates returned by Baidu Map. There are conversion codes for these coordinates on the Internet, or commonly used map download tools can also be converted. Data that needs to be displayed in normal longitude and latitude should be converted in advance.
After reading the above, do you have any further understanding of how to use open API to obtain data? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.