简体   繁体   English

iOS 打开 Google Maps App 显示多点路线

[英]iOS open Google Maps App to show route with multiple points

How to display route with multiple points?如何显示具有多个点的路线? Instead of opening Google Maps and simply showing navigation from point A to point B, I would like to show navigation from point A to B to C to D, etc...而不是打开谷歌地图并简单地显示从 A 点到 B 点的导航,我想显示从 A 点到 B 点到 C 到 D 点的导航,等等......

From official documentation it seems I can only specify starting point saddr and destination daddr从官方文档看来我只能指定起点saddr和目的地daddr

Found it:找到了:

UIApplication.shared.openURL(URL(string: "https://www.google.com/maps/dir/<lat>,<lng>/<lat>,<lng>/.../.../")!)

Although it supports up to 23 points虽然它最多支持 23 点

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

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