Hello,
I have worked on google maps api on various occasions. I implemented the distance calculator and from and to destination marker for a car pooling website, some time ago.
I can write the script to achieve your desired goal.
Can we please discuss further in detail over chat?
Please check my reviews.
regards,
Deepen