在 iPhone 应用程序中使用 Mapkit

发布于 2024-09-11 16:34:45 字数 137 浏览 4 评论 0原文

我想要一个在我的 iPhone 应用程序中的地图,我想根据某些值使用搜索词进行查询。

Mapkit框架是否接受例如美国的查询然后显示它们?

我知道与 Mapkit 提供的用途相比,这非常简单,这就是为什么我想知道它是否被涵盖?

I would like a map inside my iphone app which I want to query with search terms depending on certain values.

Does the mapkit framework accept queries of e.g. The United States and then display them?

I know this is really simple compared to the uses available from mapkit, that is why I wonder if it is covered?

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

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

发布评论

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

评论(2

你另情深 2024-09-18 16:34:45

目前 MapKit 仅提供从坐标到地址的反向地理编码。对于正向地理编码(地址或地名到坐标),您需要使用地理编码 API。

如果您的应用程序只有一组要搜索的内容,并且您知道坐标(例如示例中的国家/地区),您可以在核心数据、sqllite 等中存储和搜索它们。

Currently MapKit only provides Reverse Geocoding from coordinates to an address. For forward geocoding (an address or placename to coordinates) you'll need to use a geocoding API.

If your application only has a set number of things to be searched and you know the coordinates (like countries in your example) you could store and search them in core data, sqllite etc.

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