Improve Distance Calculator with more accuracy #796
Labels
enhancement
New feature or request
migrated from jira
Indicates that a issue has been migrated from JIRA (only automatically assigned - Do not modify!)
pipeline elements
Relates to pipeline elements
Milestone
at the moment the Haversine formula is used to calculate the distance between 2 lat/lng spherical points. Using the Vincenty solutions leads to a more accurate result
https://github.com/apache/streampipes/tree/dev/streampipes-extensions/streampipes-processors-geo-jvm/src/main/java/org/apache/streampipes/processors/geo/jvm/processor/staticdistancecalculator
The distance is calculated from a static point
Berlin
lat 52.520008
lng 13.404954
||city|| distance_sp|| distance Vincenty || alpha ||
|Karlsruhe| 524.871 | 525.735 | -0.864 |
| Sidney | 16094.221| 16088.138 | 6.083 |
|Hamburg | 255.306 | 256.015 | -0.709 |
| New York | 6384.996 | 6402.425 | -17.429 |
Backgroundinfo https://www.neovasolutions.com/2019/10/04/haversine-vs-vincenty-which-is-the-best/
Testdata:
[^City_Koords.csv]
Imported from Jira STREAMPIPES-641. Original Jira may contain additional context.
Reported by: micklich.
Subtask of issue #795
The text was updated successfully, but these errors were encountered: