---
title: equals(anotherPoint)
framework: mapkitjs
role: symbol
role_heading: Instance Method
path: mapkitjs/mappoint/equals
---

# equals(anotherPoint)

Indicates whether two map points are equal.

## Declaration

```data
equals(anotherPoint: MapPoint): boolean;
```

## Parameters

- `anotherPoint`: A map location to use for comparison.

## Return Value

Return Value Returns true if the x and y values of the map point exactly match the corresponding values of anotherPoint. Returns false if the values aren’t an exact match.

## See Also

### Working with map points

- [copy()](mapkitjs/mappoint/copy.md)
- [toCoordinate()](mapkitjs/mappoint/tocoordinate.md)
