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

Implement distance calculation (repository layer) #3

Open
aldy505 opened this issue Jan 1, 2023 · 1 comment
Open

Implement distance calculation (repository layer) #3

aldy505 opened this issue Jan 1, 2023 · 1 comment
Labels

Comments

@aldy505
Copy link
Member

aldy505 commented Jan 1, 2023

Create a new package under the repository package. Implement this. If possible, please include unit tests.
Tip: use haversine.

type DistanceCalculation interface {
// Calculate distance between two coordinate. It returns distance in kilometers.
Calculate(from primitive.Coordinate, to primitive.Coordinate) (distance float64, serviceable bool)
}

@khairulharu
Copy link
Contributor

i work with this issue
i have already create pr

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

No branches or pull requests

2 participants