Measure distanse using GPS

How to calculate???

Using machine : Phone GPS, Drone(Pixhawk2)+Blutooth Module

OS : Ubuntu 16.04
Program : QtCreator

Help me Please

Mathematical formulas and PHP code: