Contents

new Coordinate(latitude, longitude)

Creates a coordinate object with the specified latitude and longitude.

Declaration

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

Parameters

  • latitude:

    The latitude in degrees.

  • longitude:

    The longitude in degrees.

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).