From 9444e2ac8e62db2b2d90a546eebbdc93a56822db Mon Sep 17 00:00:00 2001 From: C9Glax <13404778+C9Glax@users.noreply.github.com> Date: Wed, 8 Feb 2023 18:08:49 +0100 Subject: [PATCH] Override ToString() --- OSMDatastructure/Coordinates.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OSMDatastructure/Coordinates.cs b/OSMDatastructure/Coordinates.cs index 61fe064..c46b0ed 100644 --- a/OSMDatastructure/Coordinates.cs +++ b/OSMDatastructure/Coordinates.cs @@ -44,4 +44,9 @@ public class Coordinates ulong lonHash = Convert.ToUInt64((lonRegion + 180) * decimalCoordsSave); return latHash * offset + lonHash; } + + public override string ToString() + { + return string.Format("COORDINATES Lat: {0} Lon: {1}", this.latitude, this.longitude); + } } \ No newline at end of file