We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5134ede commit 448baeaCopy full SHA for 448baea
1 file changed
library/src/main/java/com/google/maps/android/PolyUtil.kt
@@ -323,12 +323,12 @@ object PolyUtil {
323
}
324
325
// The douglasPeucker function returns a boolean array indicating which points to keep.
326
- val keepPoint = douglasPeucker(workingPoly, tolerance)
+ val pointsToKeep = douglasPeucker(workingPoly, tolerance)
327
328
// We then filter the original, unmodified polyline based on the results of the
329
// simplification algorithm. This ensures that the original points are preserved in the
330
// final output.
331
- return poly.filterIndexed { index, _ -> keepPoint[index] }
+ return poly.filterIndexed { index, _ -> pointsToKeep[index] }
332
333
334
/**
0 commit comments