From d4ad6d1f4e331392f40591ec16fd603b160b6273 Mon Sep 17 00:00:00 2001 From: Arnaud Delcasse Date: Wed, 29 Mar 2023 18:10:53 +0200 Subject: [PATCH] fix polyline issue --- encoding/polylines/decoding.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoding/polylines/decoding.go b/encoding/polylines/decoding.go index 6e092cd..e31c0b5 100644 --- a/encoding/polylines/decoding.go +++ b/encoding/polylines/decoding.go @@ -56,7 +56,7 @@ func Decode(encoded *string, precisionOptional ...int) orb.LineString { } // scale the int back to floating point and storeLineString it - coordinates = append(coordinates, orb.Point{float64(lat) / factor, float64(lng) / factor}) + coordinates = append(coordinates, orb.Point{float64(lng) / factor, float64(lat) / factor}) } return coordinates