Navigation.geolocation can get the current longitude and latitude, can you get the specific address of the user?

using navigation.geolocation to locate the mobile terminal, you can get the current longitude and latitude, but how to get the user"s address? (undefined is returned by position.address)

Mar.24,2021

you need to look it up in Baidu map or the API provided by Amap according to longitude and latitude. Note that there are many rules of latitude and longitude that sometimes need to be transformed.

Menu