使用 xcode 制作带有显示路线的地图的应用程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5524195/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:43:15  来源:igfitidea点击:

Making an app with xcode with a map showing a route

iphonexcodemaproutes

提问by Senate

Hello I need to make an app that shows you your current position on a defined route. As I am new to xCode, I'm just playing around a little bit. I am organizing a walk with an already chosen route. And I want my app to show this route on a map, with the current position of the walker, so that they can see how far it is to the finish line. A little display showing your already walked distance and the distance to go would be nice to. Could you please give me some tips? Thanks

您好,我需要制作一个应用程序,显示您在指定路线上的当前位置。因为我是 xCode 的新手,所以我只是在玩一点。我正在组织一条已经选择好的路线的步行。我希望我的应用程序在地图上显示这条路线,以及步行者的当前位置,以便他们可以看到距离终点线有多远。显示您已经步行的距离和要走的距离的小显示器会很好。你能给我一些建议吗?谢谢

回答by Tommy Herbert

I'm afraid you've picked a difficult challenge for your first Xcode outing. Navigation is fine, but showing routes has been made deliberately hard because Google don't want everyone doing that with their maps.

恐怕您为第一次 Xcode 郊游选择了一项艰巨的挑战。导航很好,但显示路线故意变得困难,因为谷歌不希望每个人都用他们的地图来做这件事。

Have a look at the Location Awareness Programming Guide.

查看位置感知编程指南