iPhone:将纬度/经度变成“主要十字路口”

发布于 2024-08-30 04:10:45 字数 320 浏览 3 评论 0原文

使用 MKReverseGeocoder 或 GoogleAPI 或 MapKit...

有没有一种简单的方法可以将纬度/经度转换为“最近的主要交叉街道”?

用户可能不知道“12345 Pineapple”位于哪里...所以我想显示诸如“Pineapple 和 Main”之类的内容...或(较大的主要道路)如“US-140 和 Hwy 76”。

我真的不在乎“主要”的定义是什么......也许任何具有更高速度限制的道路......或超过3条车道......等等。

我真的不在乎“附近”的定义是什么...也许在 0-10 英里之内...或者只是“最近找到的”。

Using the MKReverseGeocoder or GoogleAPI or MapKit...

Is there a simple way to turn a latitude/longitude into "nearest major cross-streets"?

A user might not have any idea where "12345 Pineapple" is located... so I want to show something like "Pineapple and Main"... or (larger, major roads) like "US-140 and Hwy 76".

I don't really care what "major" is defined as... perhaps any road with higher speed limits... or more than 3 lanes... etc.

I don't really care what "close by" is defines as... perhaps within 0-10 miles... or just "closest found".

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

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

发布评论

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

评论(1

七分※倦醒 2024-09-06 04:10:45

没有内置方法可以使用 MapKit 或 Google API 执行此操作。

请参阅此问题,了解与 GoogleMaps API 相关的一些内容:

有没有办法找到某个地址最近的十字路口?

There is not a built in method to do this with MapKit or the Google API.

See this SO question for some reading about this in relation to the GoogleMaps API:

Is there a way to find the nearest cross streets for an address?

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