In Google maps api I am writing a calculation script for a taxi company.
The charge per mile, which I have done. However, if the destination is within the Greater London area, the price goes up from £1.50 to £2.50 per mile.
Does anyone know how to calculate the distance travelled within this area?
I understand I can define the area as a polygon, but I don't know how to calculate the distance traveled in that area.