是否可以使用 MapKit API 显示两个注释之间的路径?

发布于 2024-10-10 03:35:22 字数 171 浏览 0 评论 0原文

我正在开发一个应用程序,它将向用户显示从数据库到用户最近的位置。当用户从列表中选择这些位置之一时,用户将在新屏幕上看到地图,该地图显示代表用户的注释以及代表该位置的另一个注释。

是否可以使用 MapKit API 向用户显示从用户到该位置的路径?我不是问如何显示逐向导航。我只想显示两个注释之间的路径。这可能吗?

I am working on an app that will show the user the closest locations from a database to the user. When the user selects one of these locations from a list, the user will then see a map on a new screen showing an annotation representing the user, and another annotation representing the location.

Is it possible using the MapKit API to show the user a path from the user to the location? I am not asking about how to show turn by turn directions. I just want to display a path between the two annotations. Is this possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故事↓在人 2024-10-17 03:35:22

在 iOS 4.x 中,Apple 添加了对地图叠加的支持。阅读更多有关 MKPolyline 和 MKPolyline 的内容可能会有所帮助。 MKPolylineView 类和 MKMapViewDelegate 协议中定义的 mapView:viewForOverlay: 方法。所有内容均可在 Map Kit 框架参考中找到。

In iOS 4.x, Apple added support for map overlays. It might help to read a little bit more about the MKPolyline & MKPolylineView classes and the mapView:viewForOverlay: method defined in the MKMapViewDelegate protocol. All available in the Map Kit Framework Reference.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文