Skip to content

Implement greatCircle #214

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

tiinsy
Copy link

@tiinsy tiinsy commented Apr 3, 2025

No description provided.

@lukas-h lukas-h linked an issue Apr 4, 2025 that may be closed by this pull request
Copy link
Member

@lukas-h lukas-h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure we make full use of dart's static types + the types from our base package geotypes

///
/// Useful link: https://en.wikipedia.org/wiki/Great-circle_distance

List<List<double>> greatCircle(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make sure our function returns something similar to the turfJS version.

Let's return a Feature with either
a LineString or MultiLineString as the payload.

https://turfjs.org/docs/api/greatCircle

/// Useful link: https://en.wikipedia.org/wiki/Great-circle_distance

List<List<double>> greatCircle(
dynamic start,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of dynamic please choose a more concrete type (the JS version asks for coordinates, which would equal to our Position type

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

Successfully merging this pull request may close these issues.

greatCircle
2 participants