<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKMapPoint/distance(to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:@F@MKMetersBetweenMapPoints"
  },
  "title" : "distance(to:)"
}
-->

# distance(to:)

Returns the number of meters between two map points.

```
func distance(to b: MKMapPoint) -> CLLocationDistance
```

## Parameters

`b`

The second map point.

## Return Value

The number of meters between the specified map points.

## Discussion

This distance reflects the actual distance between the two points on the surface of the globe, taking into account the curvature of the Earth.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)