Preferably server side… I would like to calculate the road distance between two locations, the idea being is rewarding players doing jobs based on the distance they have driven.
I am happy with an approximation, and don’t want to “over-engineer the solution”. It is important however to calculate the travelled distance (or rather, the expected distance based on shortest route) so that players are not penalised for locations extremely close (for example if you were either side of the Marina in Vespucci - based on this map - on let’s say Shank Street and had to get to Rub Street, although the locations are extremely close you have to drive around the outside of the Marina).
I have considered using CalculateTravelDistanceBetweenPoints() but am conscious of the potential of client-side abuse, as well as it seems error prone with long distances?
I wonder what solutions people have come up with for this…