From 687c7d3b4aac1103479f0d1b9f9b150e0b7e1c7e Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 10 Feb 2021 19:46:54 +0300 Subject: [PATCH] [#316] locode/column: Fix LatitudeHemisphere.North method implementation North method must return true if hemisphere char is `N`. Signed-off-by: Leonard Lyubich --- pkg/util/locode/column/coordinates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/locode/column/coordinates.go b/pkg/util/locode/column/coordinates.go index bd887c33b..ed4581d71 100644 --- a/pkg/util/locode/column/coordinates.go +++ b/pkg/util/locode/column/coordinates.go @@ -140,7 +140,7 @@ func (cc *coordinateCode) hemisphere() (h [hemisphereSymbols]uint8) { // North returns true for the northern hemisphere. func (h LatitudeHemisphere) North() bool { - return h[0] == 'W' + return h[0] == 'N' } // East returns true for the eastern hemisphere.