Quoted from gweempose:Therein lies the problem with using latitude and longitude.
It is much more difficult to calculate the routed distance along an existing road network, unless you can hit a web service such as https://developers.google.com/maps/documentation/distancematrix . But there is a limit on the number of web service hits allowed in a day (at least for Google's service).