I used H5 to obtain the current coordinates, and then called the API of Baidu Maps. I found that there was an error in the display on the mobile phone, about 1000 meters. I checked the information and said that this is normal. I must convert the GPS coordinates into For the coordinates of Baidu Map, I looked at the API and found that there are ready-made methods, but the Nan that was printed out in the end, I still don’t know what happened, so I went directly to the picture.
The value of the returned function is not a point, but a data. Take it again: data.points[0]