This repo contains a Python function that will convert encoded polyline strings (as returned from the Maps API) into a list of lat/lon pairs. If you have arcpy, it can convert the API response into a shapefile.