Geolocation HTML5 enableHighAccuracy True, False or What?


For Geolocation enableHighAccuracy, you need to set it to true −

enableHighAccuracy: true

If you still fail in getting the result i.e. handling the timeout error, then again try it with

enableHighAccuracy: false

The above would work on Android, Chrome, and Firefox as well.

Updated on: 25-Jun-2020

195 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements