implement [polyline algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm), use a lib?