How to find distance between two geopoints in c using calculateDistance(const CWaypoint& wp)
- by Harsha
void getAllDataByPointer(string *pname,double *platitude, double *plongitude);
void getAllDataByReference(string &pname,double &platitude, double &plongitude);
double calculateDistance(const CWaypoint& wp);
void print(int format);
bool less(const CWaypoint& wp_right);
CWaypoint add(const CWaypoint& wp_right);
These are the…