{"version":"1.0","type":"rich","title":"KML to GeoJSON","description":"This example converts a GPS track from a KML file into a GeoJSON MultiLineString for use in web mapping. It reads `history.kml`, parses it with the `xml2js` library, extracts the coordinates from the `gx:Track` element, and writes the resulting GeoJSON to `points.json`. The conversion relies on Node.js’s `fs` module for file input/output and `parseFloat` to clean each coordinate pair. The output is a single-feature GeoJSON object with a MultiLineString geometry, ready for visualization with tools like D3’s `d3.geoPath`.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-9856494?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}