1

MKMapPointForCoordinate 中使用的算法是什么?换句话说,如何在 Apple 的生态系统之外将 MKMapPoint 转换为纬度/经度,反之亦然?

4

1 回答 1

2

为了在 Apple 系统内进行转换:

MKMapPoint yourPoint;
CLLocationCoordinate2D location = MKCoordinateForMapPoint(yourPoint);
NSLog(@"%@", location.latitude);
NSLog(@"%@", location.longitude);

苹果是如何做到的?你可以在这里阅读

基本上,它使用墨卡托地图投影:

http://mathworld.wolfram.com/MercatorProjection.html

于 2015-08-29T07:05:22.290 回答