Coordinates constructor

Coordinates({
  1. required double lon,
  2. required double lat,
})

A class representing geographical coordinates.

The Coordinates class is used to store the longitude and latitude of a specific location.

Example usage:

Coordinates coordinates = Coordinates(lon: 12.34, lat: 56.78);

Properties:

  • lon (double): The longitude of the location.
  • lat (double): The latitude of the location.

Implementation

Coordinates({required this.lon, required this.lat});