diff --git a/OSMDatastructure/Coordinates.cs b/OSMDatastructure/Coordinates.cs index 2aa1bb5..4dba764 100644 --- a/OSMDatastructure/Coordinates.cs +++ b/OSMDatastructure/Coordinates.cs @@ -32,9 +32,7 @@ public class Coordinates public static ulong GetRegionHashCode(Coordinates coordinates) { - float latRegion = coordinates.latitude - coordinates.latitude % Region.RegionSize; - float lonRegion = coordinates.longitude - coordinates.longitude % Region.RegionSize; - return GetHashCode(latRegion, lonRegion); + return GetRegionHashCode(coordinates.latitude, coordinates.longitude); } private const float decimalCoordsSave = 10000; //Latitude maxChars = 7