【发布时间】:2018-05-16 14:54:36
【问题描述】:
在我的 html 应用程序中,用户想要在 google 或 yandex 导航中导航一个点
//geoURL='geo:'+originLat+','+originLot+'q='+DestinationLat+','+DestinationLong;
var geoURL='maps://?q='+DestinationLat+','+DestinationLong;
window.open(geoURL,'_blank');
我使用该代码执行此操作。因此,当用户单击任何产品以导航我的应用程序时,导航到 google 或 yandex 导航并开始导航...但是如何将其用于多个点?例如,我的用户首先想去点 A,然后点 B,最后点 C...如何使用这 3 点打开 google 或 yandex 地图导航?
【问题讨论】:
-
感谢@xomena,但苹果不支持这个。所以我必须使用 geo:...我怎样才能将它与 geo 属性一起使用?
标签: javascript google-maps google-maps-api-3 google-maps-android-api-2 yandex-maps