Convert GeoJSON objects to KML (Keyhole Markup Language) strings for geographic data interchange.
tokml is a JavaScript library that converts GeoJSON objects into KML (Keyhole Markup Language) strings. It solves the problem of translating modern web-friendly geographic data formats into the KML standard used by legacy GIS software and platforms like Google Earth.
Developers and GIS professionals working with geographic data who need to convert between GeoJSON and KML formats for interoperability, data sharing, or visualization in different systems.
Developers choose tokml for its simplicity, zero dependencies, and robust handling of GeoJSON metadata—including property mapping, timestamps, and styling—without requiring complex configuration or external libraries.
Convert GeoJSON to KML.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
The library has zero external dependencies, making it easy to integrate without bloating project size, as emphasized in its philosophy of minimal configuration.
Offers a straightforward function call with optional parameters for property mapping, timestamps, and document metadata, demonstrated in the README examples with clear usage patterns.
Works seamlessly in Node.js, browsers via browserify, and as a global command-line tool, providing versatility for different development environments without extra setup.
Preserves key GeoJSON properties like names and descriptions, and supports simplestyle-spec for basic KML styling conversion, handling common interoperability needs.
tokml exclusively converts GeoJSON to KML and does not provide functionality for converting KML back to GeoJSON, limiting its use in bidirectional data workflows.
Styling support is restricted to simplestyle-spec, which may not cover all KML styling needs, such as custom icons, complex visualizations, or advanced KML elements like overlays.
As a pure JavaScript library, it doesn't include TypeScript type definitions out of the box, which could increase integration effort for teams using modern TypeScript workflows.