I'm getting an overview polyline from google directions between two points then pass it as "enc:" parameter to static maps.
Once the image is rendered the polyline follows the actual shape of the road but it's displaced hundred of meters or maybe one kilometer.
Markers are set to the same coords passed to directions API but markers are displayed correctly.
I also tried to set the static maps geodesic parameter to "true" but had the same problem.
See:
or
I'm sending the final Static Maps URL through an email.