SignalK / signalk-derived-data

Generates deltas for values derived from signalk values
Apache License 2.0
18 stars 31 forks source link

CPA and TCPA #20

Closed joabakk closed 6 years ago

joabakk commented 6 years ago

Mostly note to self: Select a range to calculate CPA and TCPA for vessels within that range, then use formulas similar to http://geomalgorithms.com/a07-_distance.html to calculate CPA and TCPA for these vessels.

joabakk commented 6 years ago

Further links from slack discussion: https://github.com/lethexa/lethexa-motionpredict Maybe a starting point: calculate distance, bearing and more between Latitude/Longitude points https://www.movable-type.co.uk/scripts/latlong.html

joabakk commented 6 years ago

https://www.npmjs.com/package/geolib may be a start for getting vessels witin a range

webmasterkai commented 6 years ago

A C++ library that contains CPA TCPA calculations https://github.com/mariokonrad/marnav