We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

How to use javascript geolocation to pass latitude and longitude to my controller,

I would like to run a javascript function to get my current geo location, pass the data to my controller.



125.7k
Accepted
answer

Great - what have you tried? Also, this seems pretty solidly like a javascript question, not a Phalcon question. You might have more luck on Stack Overflow (though they'll definitely require you to provide attempted code first)