Emmanuel687 / useGeolocate

The useGeolocator hook is a custom React hook designed to simplify geolocation functionality in your React applications. It provides an easy way to access the user's current geographical position.

Home Page:https://usegeolocater.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

The useGeolocator hook is a custom React hook designed to simplify geolocation functionality in your React applications. It provides an easy way to access the user's current geographical position.

Api Reference

-latitude: The latitude of the user's location.

-longitude: The longitude of the user's location.

-error: An object representing any error that occurs during geolocation.

-loading: A boolean indicating whether geolocation is in progress.

-getLocation(): A function to trigger geolocation.

Image

web-screenshot-18-10-2023

Contributing

Contributions and improvements to this hook are welcome! Feel free to open issues or submit pull requests on the GitHub repository.

License

This hook is open-source and available under the MIT License. You are free to use, modify, and distribute it as needed.

About

The useGeolocator hook is a custom React hook designed to simplify geolocation functionality in your React applications. It provides an easy way to access the user's current geographical position.

https://usegeolocater.netlify.app/


Languages

Language:JavaScript 68.8%Language:CSS 23.0%Language:HTML 8.2%