fix polyline issue
This commit is contained in:
parent
a2dc346ed5
commit
d4ad6d1f4e
|
@ -56,7 +56,7 @@ func Decode(encoded *string, precisionOptional ...int) orb.LineString {
|
||||||
}
|
}
|
||||||
|
|
||||||
// scale the int back to floating point and storeLineString it
|
// 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
|
return coordinates
|
||||||
|
|
Loading…
Reference in New Issue