Convert lat-long string from ona.io to KML

Input:

|

Output - polygon:

Output - line:

Preview it in GeoJSON.io, Upload in Google My Maps

See the code on github | By Nikhil VJ from Pune, India | i appreciate this!