Create polylines on your map easily.
const polyline = require('maps-polyline');
const element = document.getElementById('map');
const map = new google.maps.Map(element, options); // your map with it's config
const data = {}; // you can use a JSON or an Object
polyline(map, data);
See a JSON Example