atychang / geo-distance

Calculates the distance of two points (from, to) in meter, using Vincenty's formula and Haversine formula. Implementations in c++, java and javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

geo-distance

Calculates the distance of two points (from, to) in meter, using Vincenty's formula and Haversine formula.

Implementations in

  • c++
  • java
  • javascript

Haversine formula vs Vincenty’s formula

Haversine Vincenty
Accuracy Good
Speed Good

About

Calculates the distance of two points (from, to) in meter, using Vincenty's formula and Haversine formula. Implementations in c++, java and javascript


Languages

Language:C++ 36.1%Language:Java 34.7%Language:JavaScript 29.2%