Use navigator of H5. the geolocation interface obtains the longitude and latitude of the user. However, a confirmation message indicating whether to agree is displayed every time the user enters the page, resulting in unfriendly user experience. Are there other ways to obtain the user's latitude and longitude? The requirement is to obtain the user's latitude and longitude to calculate the user... use H5
Navigator. geolocationThe interface obtains the longitude and latitude of the user, but each time you enter the page, a confirmation message indicating whether to agree is displayed, resulting in unfriendly user experience. Is there any other way to obtain the longitude and latitude of the user?
The requirement is to obtain the user's latitude and longitude to calculate the merchant nearby the user.
Reply content:
Using H5Navigator. geolocationThe interface obtains the longitude and latitude of the user, but each time you enter the page, a confirmation message indicating whether to agree is displayed, resulting in unfriendly user experience. Is there any other way to obtain the longitude and latitude of the user?
The requirement is to obtain the user's latitude and longitude to calculate the merchant nearby the user.
You should be talking about the mobile end, because the pc end can only ask once, if you want to be more accurate, it is still onlyNavigator. geolocationNow, you can only check the IP addresses. I don't know much about it.
In addition, if your webpage is open in, you can use the providedGpsInterface.