<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/Coordinate",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "cl/mapkit.Coordinate"
  },
  "title" : "Coordinate"
}
-->

# Coordinate

An object representing the latitude and longitude for a point on the Earth’s surface.

```
class Coordinate implements CoordinateData
```

## Overview

A [`Coordinate`](/documentation/MapKitJS/Coordinate) is a point on a spherical representation of the Earth at a specific degree of latitude (`90` and -`90`) and longitude (`180` to -`180`) that you use to search for locations, place annotations, and other objects on the map.

## Topics

### Creating a coordinate

[`constructor(latitude?: number, longitude?: number);`](/documentation/MapKitJS/Coordinate/CoordinateConstructor)

Creates a coordinate object with the specified latitude and longitude.

[`interface CoordinateData`](/documentation/MapKitJS/CoordinateData)

A plain object representation of a coordinate.

### Defining the coordinates

[`latitude: number;`](/documentation/MapKitJS/Coordinate/latitude)

The latitude, in degrees.

[`longitude: number;`](/documentation/MapKitJS/Coordinate/longitude)

The longitude, in degrees.

### Comparing, copying, and converting coordinates

[`copy(): Coordinate;`](/documentation/MapKitJS/Coordinate/copy)

Returns a copy of the coordinate.

[`equals(anotherCoordinate: CoordinateData): boolean;`](/documentation/MapKitJS/Coordinate/equals)

Returns a Boolean value indicating whether two coordinates are equal.

[`toMapPoint(): MapPoint;`](/documentation/MapKitJS/Coordinate/toMapPoint)

Returns the map point that corresponds to the coordinate.

[`toUnwrappedMapPoint(): MapPoint;`](/documentation/MapKitJS/Coordinate/toUnwrappedMapPoint)

Returns the unwrapped map point that corresponds to the coordinate.

### Instance Methods

[`toString(): string;`](/documentation/MapKitJS/Coordinate/toString)

Returns a string representation of the coordinate object.

## Relationships

### Conforms To

[`CoordinateData`](/documentation/MapKitJS/CoordinateData)

---

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)