feat(stdlib): add haversine function#1442
Merged
pront merged 7 commits intovectordotdev:mainfrom Jul 9, 2025
Merged
Conversation
Adds `haversine` function for calculating [haversine distance and bearing](https://en.wikipedia.org/wiki/Haversine_formula), in kilometers or miles. Closes: vectordotdev#1441
esensar
added a commit
to esensar/vector
that referenced
this pull request
Jul 3, 2025
8 tasks
pront
reviewed
Jul 7, 2025
Member
pront
left a comment
There was a problem hiding this comment.
Looks good mostly, left some nits.
Co-authored-by: Pavlos Rontidis <pavlos.rontidis@gmail.com>
pront
reviewed
Jul 7, 2025
Co-authored-by: Pavlos Rontidis <pavlos.rontidis@gmail.com>
pront
approved these changes
Jul 9, 2025
esensar
added a commit
to esensar/vrl
that referenced
this pull request
Jul 11, 2025
11 tasks
github-merge-queue bot
pushed a commit
to vectordotdev/vector
that referenced
this pull request
Jul 21, 2025
* docs(external): add docs for `haversine` VRL function Related: vectordotdev/vrl#1442 * Apply suggestions from code review Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> * Rename haversine function in docs * Add map category to docs * Fix docs formatting * Generate #FunctionCategory disjunction from list to reduce duplication * Update names of arguments * Update VRL * Update VRL * Update types for haversine in docs --------- Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> Co-authored-by: Pavlos Rontidis <pavlos.rontidis@gmail.com>
5Dev24
pushed a commit
to 5Dev24/vector
that referenced
this pull request
Jul 21, 2025
…3336) * docs(external): add docs for `haversine` VRL function Related: vectordotdev/vrl#1442 * Apply suggestions from code review Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> * Rename haversine function in docs * Add map category to docs * Fix docs formatting * Generate #FunctionCategory disjunction from list to reduce duplication * Update names of arguments * Update VRL * Update VRL * Update types for haversine in docs --------- Co-authored-by: Rosa Trieu <107086888+rtrieu@users.noreply.github.com> Co-authored-by: Pavlos Rontidis <pavlos.rontidis@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
haversinefunction for calculating haversine distance and bearing, in kilometers or miles.Change Type
Is this a breaking change?
How did you test this PR?
Included tests and benchmarks.
Does this PR include user facing changes?
our guidelines.
Checklist
run
dd-rust-license-tool writeand commit the changes. More details here.References
haversineVRL function vector#23336