如何通过电子邮件发送CLLocationCoordinate2D作为链接 [英] How to email CLLocationCoordinate2D as a link

查看:73
本文介绍了如何通过电子邮件发送CLLocationCoordinate2D作为链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过电子邮件功能模拟地图的共享位置".

I am trying to emulate the Maps 'Share Location' via email functionality.

我具有所在位置的经度和纬度,目前正在使用它通过MKMapView在地图上显示位置.

I have the latitude and longitude of my location and am currently using it to display the location on a map via MKMapView.

我还具有编写来自应用程序的电子邮件的功能,我想在其中包含位置,但无法弄清楚如何使用经度和纬度来构建链接.

I also have functionality that composes an email from the app and I would like to include the location in it but can not figure out how to construct a link, using the longitude and latitude.

我看过其他具有此功能的应用程序,所以我知道这是可能的.

I have seen other apps with apps with this functionality so I know it is possible.

任何帮助将不胜感激.

谢谢.

更新:

该链接应打开Goog​​le地图.

The link should open Google Maps.

推荐答案

应该链接到哪里?您的应用程序或Google地图?对于后者,请查看

Where should it link to? Your app or Google Maps? For the latter, check out the Apple URL Scheme Reference. For the former, you have to construct your own URL scheme and then create a string that matches your scheme.

这篇关于如何通过电子邮件发送CLLocationCoordinate2D作为链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆