c# - 在具有多个航路点的 IOS 中启动谷歌地图

标签 c# ios xamarin.forms google-maps-urls

我需要在我的 Xamarin 表单应用程序中使用 url 在 IOS 上的 map 上显示多个航路点来启动谷歌地图。 我可以使用此 url 以 2 点(源和目标)启动它:

comgooglemaps-x-callback://?zoom=14&saddr= " + App.UserCurrentLatitude + "," + App.UserCurrentLongitude + "&daddr=" + item.xpos + "," + item.ypos + "&directionsmode=driving

如何在 map 上显示多个点?

我尝试添加这个但没有帮助。

waypoints=24.743449,46.658885/24.744560,46.660666

有人吗??

最佳答案

经过大量谷歌搜索后,我让它像这样工作:

comgooglemaps - x - callback://?zoom=14&saddr= " + App.UserCurrentLatitude + "," + App.UserCurrentLongitude + "&daddr=" + item.xpos + ",+" + item.ypos + "+to:24.123456,+24.234567&directionsmode=driving

以防其他人正在寻找相同的东西。

关于c# - 在具有多个航路点的 IOS 中启动谷歌地图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44544429/

相关文章:

c# - 类库中的控制台应用程序引用

c# - 在CompareValidator上添加JS验证

ios - 在联系人 UI 中显示编辑联系人

c# - Xamarin.Forms:在饼图布局中放置标签

xaml - Xamarin.Forms 与数据触发器绑定(bind) - 值不更新

c# - ocelot 更改配置而不重新启动应用程序

ios - Apple 的 Swift 编程语言中的 Swift 之旅——interestingNumber 迭代 8 次

objective-c - 在 iPhone 中将多种日期格式转换为单一格式

xamarin.forms - Appium 无法运行具有 SplashActivity 的 Xamarin Forms 应用程序

c# - List<T> 实现 IQueryable<T>