我有一个小应用程序,提供当前位置:经度和纬度。 现在我必须浏览谷歌地图的经度和纬度。 请建议我该怎么做。
当前回答
这些是有效的url:
http://maps.google.com/?q= < LAT >、<液化天然气>
https://maps.google.com/?q=<LAT>,<LNG>&ll=<LAT>,<LNG>&z=18
https://www.google.com/maps/@ < LAT >、<液化天然气> 16 z
https://maps.google.com/?q=<LAT>,<LNG>&z=16
虽然(对于热心的读者)这是谷歌(2017年8月22日)的最新消息:
地图的url 使用地图显示映射url 用搜索动作映射url
从谷歌
Search: When searching for a specific place, the resulting map puts a pin in the specified location and displays available place details. Important: The parameter api=1 identifies the version of Maps URLs this URL is intended for. This parameter is required in every request. The only valid value is 1. If api=1 is NOT present in the URL, all parameters are ignored and the default Google Maps app will launch, either in a browser or the Google Maps mobile app, depending on the platform in use (for example, https://www.google.com/maps).
其他回答
如果你想在浏览器中打开谷歌地图:
http://maps.google.com/?q= < lat >、<液化天然气>
要在iOS移动设备上打开谷歌地图应用程序,请使用谷歌地图URL方案:
comgooglemaps: / / ?q = < lat >、<液化天然气>
要在Android上打开谷歌地图应用程序,使用geo: intent:
地理:< lat >, <液化天然气> ?z = <变焦>
使用查询参数将不起作用,谷歌将尝试近似位置。
我想去的地方:http://maps.google.com/maps?ll=43.7920533400153,6.37761393942265
大致位置(实际位置以西):http://maps.google.com/?q=43.7920533400153,6.37761393942265
如果你想要一个dir旅行模式=步行
https://www.google.es/maps/dir/'52.51758801683297,13.397978515625027'/'52.49083837044266,13.369826049804715'/data=!4m2!4m1!3e2
在谷歌地球程序中找到您的位置,并单击“在谷歌地图中查看”图标。浏览器中的URL栏将显示您需要的URL。
这些是有效的url:
http://maps.google.com/?q= < LAT >、<液化天然气>
https://maps.google.com/?q=<LAT>,<LNG>&ll=<LAT>,<LNG>&z=18
https://www.google.com/maps/@ < LAT >、<液化天然气> 16 z
https://maps.google.com/?q=<LAT>,<LNG>&z=16
虽然(对于热心的读者)这是谷歌(2017年8月22日)的最新消息:
地图的url 使用地图显示映射url 用搜索动作映射url
从谷歌
Search: When searching for a specific place, the resulting map puts a pin in the specified location and displays available place details. Important: The parameter api=1 identifies the version of Maps URLs this URL is intended for. This parameter is required in every request. The only valid value is 1. If api=1 is NOT present in the URL, all parameters are ignored and the default Google Maps app will launch, either in a browser or the Google Maps mobile app, depending on the platform in use (for example, https://www.google.com/maps).
推荐文章
- 使伸缩项目正确浮动
- 形式内联内的形式水平在twitter bootstrap?
- 自定义元素在HTML5中有效吗?
- 如何触发自动填充在谷歌Chrome?
- 创建圈div比使用图像更容易的方法?
- 为什么Chrome浏览器不正确地确定页面是在不同的语言,并提供翻译?
- 在网页上用鼠标模拟震颤(例如帕金森病)?
- Bootstrap抛出Uncaught错误:Bootstrap的JavaScript需要jQuery
- 如何改变文本区域的边框颜色:焦点
- 我如何设置背景颜色为文本的宽度,而不是整个元素的宽度,使用CSS?
- 如何删除和清除所有的本地存储数据
- 强制打开“另存为…”弹出打开文本链接点击PDF在HTML
- 如何修改标签文本?
- 在HTML中还有其他有用的空格码吗,比如半空格的 , em-spaces, en-spaces等等?
- 输入触发器按钮单击