You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Decoding a zero-length polyline consisting of two coincident endpoints returns an array of only one CLLocationCoordinate2D, which would be a malformed line string:
decodePolyline("s{byuArigzhF", precision:1e6)
▿ Optional<LineString>
▿ some : LineString
▿ coordinates : 1 element
▿ 0 : CLLocationCoordinate2D
- latitude : 45.516746
- longitude : -122.605738
By comparison, the @mapbox/polyline 1.1.0 NPM package decodes the same string to GeoJSON as a line string with two coordinates:
Decoding a zero-length polyline consisting of two coincident endpoints returns an array of only one
CLLocationCoordinate2D
, which would be a malformed line string:By comparison, the
@mapbox/polyline
1.1.0 NPM package decodes the same string to GeoJSON as a line string with two coordinates:The text was updated successfully, but these errors were encountered: