Drag and Drop Encoded Polyline to geoJSON Conversion

With Massive Respect to THIS HERO who wrote the whole file conversion framework, and THESE HEROES who wrote the converter. I just glued the bits together.

Drop or select a file with google-encoded polylines file and this will convert it and return a link to a geoJSON file. Save the generated link to your PC and load into your favourite GIS.

DROP!

A google-encoded polyline looks a bit like this:

_{reFxmjVpAeBn@{@w@aAc@m@yAsBJuAC}BIeAO_Ak@sBCQOg@g@aAk@}@qAwAs@s@}
You can't paste that in here, save it to a local file and drop it on the target or hit the button and select it. That fragment above can actually be used and translates to the following geoJSON:
{
"type": "FeatureCollection",
                                                                                
"features": [
{ "type": "Feature", "id": 1, "properties": { "ID": 1.000000 }, "geometry": { "type": "LineString", "coordinates": [ 

       [37.78496,-3.82701],[37.78455,-3.8265],[37.78431,-3.8262],[37.78459,-3.82587],
       [37.78477,-3.82564],[37.78522,-3.82506],[37.78516,-3.82463],[37.78518,-3.824],
       [37.78523,-3.82365],[37.78531,-3.82333],[37.78553,-3.82275],[37.78555,-3.82266],
       [37.78563,-3.82246],[37.78583,-3.82213],[37.78605,-3.82182],[37.78646,-3.82138],
       [37.78672,-3.82112],[37.78863,-3.82112]
] } }
]
}


Hacked together by Barry Rowlingson