fix polyline issue

This commit is contained in:
Arnaud Delcasse 2023-03-29 18:13:38 +02:00
parent d4ad6d1f4e
commit 761449b828
1 changed files with 1 additions and 1 deletions

View File

@ -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(lng) / factor, float64(lat) / factor})
coordinates = append(coordinates, orb.Point{float64(lat) / factor, float64(lng) / factor})
}
return coordinates