convert

Reads kml and returns a GeoJSON FeatureCollection document, or null if nothing mappable was found.

Takes the document as text rather than a stream: a KMZ is a zip, and unpacking one is the host's job — this converter only ever sees the KML inside.