Google static maps with directions : <p>I have in my project list of generated places with mini maps. There should be 2 points on the map and colored road direction between this two points.</p>

<p>it should looks somehow like this:</p>

<p><a href="https://i.stack.imgur.com/rdi7Y.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rdi7Y.png" alt="expected map picture"></a></p>

<p>This should be static image, because there will be many such pictures with different directions on the page. But as I see, Google Static map didn't allow to draw such image. There can be only direct line between two points, like this:</p>

<p><a href="https://i.stack.imgur.com/Cx4EF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Cx4EF.png" alt="enter image description here"></a></p>

<p>But I need direction on it...</p>

<p>I decided to use static map, because in my web application I receive coordinates of those 2 points, and it's easy to put it as variables in my PHP template if I use static maps. 
But is it possible to receive direction as static image in same way?</p>

<p>I have found few solution with JavaScript API, but didn't find how to draw static image as I need...</p>
