getAccurateCurrentPosition

Real GPS demo. Tap the button and grant location access when prompted.

Each callback below is a single watchPosition update. The library returns the first one whose accuracy meets your threshold (after ignoring a possibly-cached first reading), or the last one it saw when maxWait elapses.

Run automated tests · View source on GitHub