iOS objective-c mapkit Geopoint x和y到纬度和经度

时间:2015-05-22 22:26:01

标签: ios mapkit

我有墨卡托投影坐标的GeoJson(WGS84)。

{"type":"Feature","geometry":{"type":"Point","coordinates":[300815.531,5042213]}

当我尝试使用MKCoordinateForMapPoint将这些值转换为long和lat时,我的坐标错误。有什么问题?

CLLocationCoordinate2D newCoordinate = MKCoordinateForMapPoint(MKMapPointMake(300815.531, 5042213));

结果为:新坐标84.432113,-179.596575

但是预期的坐标应该接近这些值: + 45.51,-73.54

0 个答案:

没有答案