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