简体   繁体   English

网页中的GPS位置

[英]gps location in web page

Can I get gps coordinates from smartphone with android by java script request? 我可以通过Java脚本请求从具有Android的智能手机获取GPS坐标吗? Can it be done from web browser or do I need to create app? 可以通过Web浏览器完成操作,还是需要创建应用程序?

You can do it with a web application using navigator.geolocation . 您可以使用navigator.geolocation在Web应用程序中完成此操作。

The Android browser will still prompt the user and they can deny the request. Android浏览器仍会提示用户,他们可以拒绝该请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM