useGeolocation

React sensor hook that tracks user's geographic location.

hooks
{
  "loading": true,
  "accuracy": null,
  "altitude": null,
  "altitudeAccuracy": null,
  "heading": null,
  "latitude": null,
  "longitude": null,
  "speed": null,
  "timestamp": 1737176408126
}

NB: This hook accepts position options.

Installation

Run the following command:

npx ever-ui-clx@0.2.1 add demo-use-geolocation
# └──> Hook coming soon.

Usage