Document Maps SDK for iOS Guides Utility Library Coordinate Conversion

Coordinate Conversion

The iOS Map SDK provides coordinate conversion methods in AMapFoundationKit.h. For detailed API references, see AMapFoundationKit.h.

The SDK supports converting coordinates from multiple coordinate systems — including iOS built-in GPS, Google, MapBar, Baidu, and MapABC — to AMap coordinates. The following example demonstrates GPS coordinate conversion:

// Convert GPS coordinates to AMap coordinates
CLLocationCoordinate2D amapcoord = AMapCoordinateConvert(CLLocationCoordinate2DMake(39.989612, 116.480972), AMapCoordinateType);