Paint streets from googlemaps

I'm doing a service that needs you to paint some streets on the maps with different colors depending on a particular typology.

I already did it for ios, as I demonstrate in the image below. insert the description of the image here

But in this case I used ios mapkit.

Now I want to recreate the same effect but in googlemaps and on a site in html and asp. Anyone have any idea how I can do it?

On ios what I did was create an array of coordinates and value and as the value he paints the street a certain color taking into account the coordinates I give him. In this case, I have no idea how I can do it.

Thank you

Author: HideCode, 2016-04-27