android - 使用网页链接访问移动 GPS 应用程序并将当前位置传递给应用程序

标签 android ios mobile gps html

我的目标是使用我当前的网页通过网页上的链接访问 native 移动 GPS 应用程序,并让该链接将我当前的位置和目标位置发送到应用程序。这一切都必须从我的网页完成。例如,我单击建筑物地址链接,它会通过应用程序将我带到该建筑物。用户必须在移动设备上浏览。

最佳答案

所有移动浏览器都支持 GEO 位置 API,您可以使用它们的位置通过 Virtual Earth 或 Google 将 map 居中,当然还可以添加您需要添加到 map 中的项目,例如图钉等。我有一篇关于它的博客文章:

http://professionalaspnet.com/archive/2012/05/25/A-Study-Using-The-HTML5-Geolocation-API.aspx

关于android - 使用网页链接访问移动 GPS 应用程序并将当前位置传递给应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13482876/

相关文章:

html - 如何根据屏幕尺寸对齐图片和文字?

c# - 如何在Azure API函数中返回变量并通过移动应用程序中的调用异步函数读取它

android - java.lang.NullPointerException : Attempt to invoke interface method 'java.util.Iterator java.lang.Iterable.iterator()' when starting a notification

android - 我可以在 React Native 中将 Zebra 扫描仪包与 Expo 项目一起使用吗?

objective-c - CoreGraphics 在白色 Canvas 上绘制图像

ios - ios7 : CGContextDrawImage or UIView setImage? 速度大幅下降

java - fragment : Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference

java - 如何在点击按钮时发出随机声音?

iOS 点击识别器捕捉所有点击

html - 无法摆脱我的移动版网站底部的空白区域