Tristan would need to know the distance between the place he is standing right now and his destination in order to find out the Grab fare that he has to pay. Create a function in which it will takes two different set of longitude and latitude (staring point and destination) and return the displacement between the locations and calculate the fare using the following scheme:
The base fare is $0.75
For each next 10km the fare is $0.5/km
For each km after the first 10km, the fare is $0.35/km