Nice tutorial... What if I want to get the cordinates with the user input. I mean user should input thier address and the cordinates should display. Thanks
This is based on the browser API and can not be used on NodeJS. On nodeJS you find the location using the client IP address and below node package. This might need you to purchase a paid plan. github.com/geoip-lite/node-geoip
I used this in my project. Everything's working fine in all browsers except for in Firefox browser, it is saying position acquisition timed out. I am using the latest firefox browser and also played with the options part. Nothing's working. Can you tell me where this might be going wrong. Found where it's going wrong. Its working!!!
Good hook for geo location api. Thanks a ton.
Fantastic Video, been struggling on this all day.
It really helped me. Thanks for your clean code.
Wow, simply super - explanation was clear. Thank you for sharing.
Glad you liked it
Nice tutorial... What if I want to get the cordinates with the user input. I mean user should input thier address and the cordinates should display. Thanks
i have the same problem , because i not want use GoogleMaps API , i'm looking for a free alternative API
In the error i need the cached position values..how to get this one??
Great video. thank you very much
How do you get city and state name???
Super for all concept
hey can you intergrate wikitude plugin to make it as ar app?
so we using this in react right? what about in the nodejs backend?
This is based on the browser API and can not be used on NodeJS.
On nodeJS you find the location using the client IP address and below node package. This might need you to purchase a paid plan.
github.com/geoip-lite/node-geoip
I used this in my project. Everything's working fine in all browsers except for in Firefox browser, it is saying position acquisition timed out. I am using the latest firefox browser and also played with the options part. Nothing's working. Can you tell me where this might be going wrong. Found where it's going wrong. Its working!!!
In Firefox, geolocation only works with https routes. On location host you must enable https for geolocation.
Thank you!
location hook unresponsive while switching b/w pages in application any idea about it
store it in redux
thanks very much !!!!
if a user accidentally block the permission, how to make user allow without clearing the browser settings
thanks bro its working!!!
it really helped me
Hello, the accuracy is very high, is there any way to reduce this number?
You can try to pass "enableHighAccuracy: false" in options. But not sure if this will give you the expected result.
how to get country code???
this is great code
amazing tutorial, many thanks!!!!
Thanks a lot
cool tutorial
tysm!!!
Thanks