toWKT method

String toWKT()

Converts the Coordinate to a WKT String. Useless on its own, but useful for other classes.

Example:

Coordinate(1, 2).toWKT(); // 1 2

Implementation

String toWKT() {
  return '$longitude $latitude';
}