adl1995 / geolib

Geographical distance computation algorithms.
0 stars 0 forks source link

Review 1 enhancements #3

Closed adl1995 closed 6 years ago

adl1995 commented 6 years ago

Following issue #1, this pull request aims to introduce the following changes:

adl1995 commented 6 years ago

@vissarion I have implemented the Vincenty's formula and tested my code against Boost Geometry distance algorithms. The strategies I have used are: Vincenty, Andoyer, and Thomas.

I am getting correct results with all the strategies. However, I noticed that I had to provide latitude and longitude in reverse order i.e.

  spherical_point point1(120.335066 /* longitude */, 23.205402 /* latitude */);

I'm not sure why this design was chosen. I have my exams starting from tomorrow. So, I will complete the remaining tasks once I get free.

Thanks!

adl1995 commented 6 years ago

Thank you for the review! I have merged this branch into master. I will make further changes in a separate branch.