Encode points as a polyline string, 5 decimal places (Google's format). Exact halves round up (Math.round), where Google's reference rounds away from zero, so a value like -0.000005 encodes as 0; kept so stored outlines don't change.
Math.round
Encode points as a polyline string, 5 decimal places (Google's format). Exact halves round up (
Math.round), where Google's reference rounds away from zero, so a value like -0.000005 encodes as 0; kept so stored outlines don't change.