Skip to content

Commit 448baea

Browse files
committed
refactor: Improve variable name in PolyUtil.simplify
1 parent 5134ede commit 448baea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • library/src/main/java/com/google/maps/android

library/src/main/java/com/google/maps/android/PolyUtil.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,12 @@ object PolyUtil {
323323
}
324324

325325
// The douglasPeucker function returns a boolean array indicating which points to keep.
326-
val keepPoint = douglasPeucker(workingPoly, tolerance)
326+
val pointsToKeep = douglasPeucker(workingPoly, tolerance)
327327

328328
// We then filter the original, unmodified polyline based on the results of the
329329
// simplification algorithm. This ensures that the original points are preserved in the
330330
// final output.
331-
return poly.filterIndexed { index, _ -> keepPoint[index] }
331+
return poly.filterIndexed { index, _ -> pointsToKeep[index] }
332332
}
333333

334334
/**

0 commit comments

Comments
 (0)