I am currently trying to write a module to let me add great big polylines to google maps. I have a module I am calling the route module and when you choose Add New Route from the content menu it has a google map in the add node form which allows you to add waypoints to define your route.