Closed zakjan closed 3 years ago
Add earthRadius option, to fix compatibility issues when combining calculations with other libraries. For example, mapbox-gl-js uses mean Earth radius. Some libraries already support to customize Earth radius in a similar way (e.g. geodesy).
Hi @zakjan just one comment, I'll merge it if you can move away from const until we can make this use babel (or hopefully typescript)
const
Add earthRadius option, to fix compatibility issues when combining calculations with other libraries. For example, mapbox-gl-js uses mean Earth radius. Some libraries already support to customize Earth radius in a similar way (e.g. geodesy).