<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/Coordinate/CoordinateConstructor",
  "metadataVersion" : "0.1.0",
  "role" : "Constructor",
  "symbol" : {
    "kind" : "Constructor",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instctr/mapkit.Coordinate/CoordinateConstructor"
  },
  "title" : "new Coordinate(latitude, longitude)"
}
-->

# new Coordinate(latitude, longitude)

Creates a coordinate object with the specified latitude and longitude.

```
constructor(latitude?: number, longitude?: number);
```

## Parameters

`latitude`

The latitude in degrees.

`longitude`

The longitude in degrees.

## Discussion

Create a new `mapkit.Coordinate` like this:

```javascript
const coordinate = new mapkit.Coordinate(37.415, -122.048333);	// latitude, longitude
coordinate.equals(otherCoordinate) // Returns true if otherCoordinate is at the same position (within a small margin of error).
```

---

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)