Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pleblancq opened this issue Oct 7, 2022 · 1 comment

Comments

@pleblancq
Copy link

pleblancq commented Oct 7, 2022

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants