简体   繁体   English

打开带有标签的Google地图

[英]Open Google Maps with labels

I am trying to open google maps application from my application to show directions to users. 我正在尝试从我的应用程序打开google maps应用程序以向用户显示路线。

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

But when GoogleMaps application open up it converts the above labels into addresses. 但是,当GoogleMaps应用程序打开时,它将上述标签转换为地址。 I want GoogleMaps to just show labels instead of addresses. 我希望GoogleMaps仅显示标签而不是地址。 How can I do that? 我怎样才能做到这一点? Example url 示例网址

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

I want icy Curls in the destination instead of its address 我想要目的地的冰冷卷发,而不是地址

Thanks 谢谢

选中此选项以获取绘制了折线的确切路线,我们只能通过传递完整地址来做到这一点。

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

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

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