Geometry length mismatched between Java/Javascript
Geometry length calculations are mismatched (~35cm off between Javascript/Java implementation), currently using Haversine Formula for the length of the geometry. I could calculate the length using the rhumb distance, maybe it will match.
Used this geometry to calculate the ~35cm offset between both libraries.
const line = [[-74.006449, 40.739405000000005], [-74.00790070000001, 40.7393884], [-74.00805100000001, 40.7393804]];
sharedstreets.distanceToNextRef(line) //=> 13501
// => Java Implementation => 13536
To-Do
Geometry length mismatched between Java/Javascript
Geometry length calculations are mismatched (~35cm off between Javascript/Java implementation), currently using Haversine Formula for the length of the geometry. I could calculate the length using the
rhumbdistance, maybe it will match.Used this geometry to calculate the ~35cm offset between both libraries.
To-Do
Rhumb linedistance calculations for length of Geometry. Currently using@turf/length(uses harversine formula)