基于网络的应用程序是否有可能以某种方式访问​​智能手机的位置?并回报?

Is it possible for a web-based application to somehow access a smartphone's location ? And report back?

我的网络应用程序是在 Flask(Python 的 DIY 网络框架)中构建的,我想将我的用户位置与我们的其他资产一起包含在地图上。

我没有在 android 或 iPhone 上构建应用程序。我不清楚这项任务的范围。

堆栈:CentOS6PythonFlaskTwilio 以及用户浏览器能够执行的任何操作 (?)

是的,HTML5 是 Geolocation API

if ("geolocation" in navigator) {
  navigator.geolocation.getCurrentPosition(function(position) {
    do_something(position.coords.latitude, position.coords.longitude);
  });
}