Javascript/PHP can I get GPS location and send it to me?

故事扮演 提交于 2019-12-02 13:33:39

The ethical questions about accessing private location information without consent aside, browsers are explicitly designed not to inadvertently disclose this. This is why you'll be asked to grant access to an HTML 5 site attempting to gain access to the coordinates.

The best you could do is use a service which resolves the IP address to a physical location and makes some assumptions based on this, although the reliability of this practice is sporadic at best.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!