【问题标题】:Open Google Maps with labels打开带有标签的谷歌地图
【发布时间】:2018-03-10 07:26:26
【问题描述】:

我正在尝试从我的应用程序中打开谷歌地图应用程序以向用户显示路线。

http://maps.google.com/maps?saddr=" + sourceLatitude + "," + sourceLongitude 
+ "(" + "label1" + ")&daddr=" + destinationLatitude + "," + 
destinationLongitude + " (" + "label2" + ")";

但当 GoogleMaps 应用程序打开时,它会将上述标签转换为地址。 我希望 GoogleMaps 只显示标签而不是地址。我怎样才能做到这一点? 示例网址

http://maps.google.com/maps?saddr=28.63382,77.220975&daddr=28.6328878,77.22014879999999(IcyCurls)&dirflg=w

我想在目的地而不是它的地址中出现冰冷的卷发

谢谢

【问题讨论】:

  • 你能用你得到的值粘贴确切的网址吗?
  • @ArthiRajgopal 已编辑,请查看示例网址
  • 是的,它对我有用maps.google.com/… 也检查这个文档的参数gearside.com/…
  • @ArthiRajgopal 你只是传递名称,如果假设有 2 个同名的网点,那么我们如何找到合适的网点,我们需要经纬度或完整地址

标签: android google-maps google-maps-api-3 directions


【解决方案1】:

检查这个得到确切路线的多段线,我们只能通过传递完整地址来做到这一点。

https://www.google.com/maps/dir/?api=1&origin=760+West+Genesee+Street+Syracuse+NY+13204&destination=314+Avery+Avenue+Syracuse+NY+13204

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-04-25
    • 1970-01-01
    • 2016-07-23
    • 2013-01-29
    • 2016-11-25
    • 2011-06-12
    • 1970-01-01
    • 2015-12-20
    相关资源
    最近更新 更多