Then in order to obtain accurate location information, we use Baidu Map API to get the latitude and longitude of the station.
We use the R package “baidumap” to connect to the Baidu Map API and obtain the key through the Baidu Map open platform to extract the latitude and longitude of the region. Among them, data processing and using API to retrieve regional longitude and latitude operations are implemented through parallel computing, which explicitly involves the contents of packages such as “foreach”, “parallel”, and “future apply”.
Our location matching work can be clearly shown in Figure 3:
Location matching progress.The main steps are the extraction of cities and the acquisition of latitude and longitude.
Do you have any questions about this protocol?
Post your question to gather feedback from the community. We will also invite the authors of this article to respond.