A JavaScript library for calculating great circle routes and outputting them as GeoJSON or WKT.
arc.js is a JavaScript library for calculating great circle routes, which are the shortest paths between two points on a sphere like Earth. It generates accurate geographic lines in GeoJSON or Well-Known Text (WKT) formats, providing essential geospatial functionality for mapping and navigation applications.
Developers building mapping, navigation, or geospatial analysis applications in JavaScript or TypeScript, particularly those needing to visualize or compute shortest-distance routes on a globe.
Developers choose arc.js for its proven accuracy from aviation and geospatial algorithms, automatic handling of complex cases like dateline crossing, and seamless interoperability through GeoJSON and WKT outputs, all with full TypeScript support and cross-platform compatibility.
great circle routes in javascript
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Based on Ed Williams' Aviation Formulary and GDAL algorithms, ensuring reliable great circle calculations trusted in aviation and geospatial applications.
Generates both GeoJSON and WKT outputs, making it easy to integrate with various mapping libraries and GIS software without format conversion hassles.
Includes comprehensive type definitions for all functions and parameters, enhancing code safety and developer experience in TypeScript projects.
Seamlessly manages routes crossing the international dateline with a configurable offset, reducing edge-case complexity in global mapping scenarios.
Only calculates great circle routes, lacking other common geospatial utilities like distance measurement or polygon operations, which may require additional libraries.
Uses x for longitude and y for latitude, which can confuse developers accustomed to lat/lon conventions or other coordinate systems.
Dateline crossing is handled with a basic offset parameter, but polar routes or highly precise geodesic calculations might need manual adjustments or external tools.