MLH-Fellowship / prep-project-22.AUG.PREP.2

MLH Prep Project for Pod 22.JUL.AUG.2
https://prep-22-aug-prep-2-project.netlify.app/
MIT License
3 stars 13 forks source link

Locate user via geolocation API #24

Closed jcyling closed 2 years ago

jcyling commented 2 years ago

For issue #3 Use the geolocation API.

Introduces a useLocation hook with the geolocation API and feeds back into a useEffect that reverse geocodes the coordinates to a city.

Default city is kept as New York in case user rejects geolocation request.

netlify[bot] commented 2 years ago

Deploy Preview for prep-22-aug-prep-2-project ready!

Name Link
Latest commit 20533d5e524689869c89d8a7e8bb939548e2b07b
Latest deploy log https://app.netlify.com/sites/prep-22-aug-prep-2-project/deploys/62f4b23263be30000968ff57
Deploy Preview https://deploy-preview-24--prep-22-aug-prep-2-project.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Ahmedsaed commented 2 years ago

The changes looks good to me. But for some reason the Netlify server is mad at me and keeps responding with 404 (not found)

I pulled the changes from your fork to mine and tested the code there and it works super great. So I guess I will merge the branch