toWKT method
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';
}
Converts the Coordinate to a WKT String. Useless on its own, but useful for other classes.
Example:
Coordinate(1, 2).toWKT(); // 1 2
String toWKT() {
return '$longitude $latitude';
}