---
title: "new Coordinate(latitude, longitude)"
framework: mapkitjs
role: symbol
role_heading: Constructor
path: mapkitjs/coordinate/coordinateconstructor
---

# new Coordinate(latitude, longitude)

Creates a coordinate object with the specified latitude and longitude.

## Declaration

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

## Parameters

- `latitude`: The latitude in degrees.
- `longitude`: The longitude in degrees.

## Discussion

Discussion Create a new mapkit.Coordinate like this: 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).

## See Also

### Creating a coordinate

- [CoordinateData](mapkitjs/coordinatedata.md)
