Computer >> Computer tutorials >  >> Programming >> Javascript

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.