manuelbieh / geolib

Zero dependency library to provide some basic geo functions
MIT License
4.21k stars 341 forks source link

computeDestinationPoint uses a different hardcoded earth radius value instead of the constant #290

Open pleblancq opened 1 year ago

pleblancq commented 1 year ago

in computeDestinationPoint.ts

const computeDestinationPoint = (
    start: GeolibInputCoordinates,
    distance: number,
    bearing: number,
    radius: number = 6371000
) => {

instead of using export const earthRadius = 6378137; from constants.ts

this issue appeared in v2.0.25

nacho-skydweller commented 1 year ago

I submitted PR #296 to fix this, could someone give it a review and merge when possible please?