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 | By Nikhil VJ | i appreciate this!