Skip to content

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