Google Directions API Encoded Polyline
I am trying to map routes which should match the Google Maps street network. I know how to serialize the JSON result from the Google Maps Directions API. I am looking now at encoding the polylines from the individual routing steps. I have found some decoder algorithm here on stackoverflow but tested first Google's own Interactive Polyline Encoder . I would expect the encoded line to match the Google Map but it doesn't. The screenshot shows the result of an encoded segment in the Interactive Polyline Encoder on the left and the result from a Google Maps route on the right. The encoded polyline