I would like some PHP code written that will calculate, based on UK post codes or addresses, the distance from one location to another using roads (Not direct distance). The Google maps API does provide this information but other mapping solutions may be used such as Bing Maps API.
It will then need to display the map of the route from a source location stored in a database depending on the provider and the costs based on additional parameters stored in a database. These parameters will be as follows.
Fixed price for a job + (distance * Mileage rate) + (Duration of the travel * time rate) + (waiting time * waiting rate) + (Provider travel rate)
The provider travel rate will be variable depending upon the provider with multiple providers being available.
It will also need to show set off times and arrival times and have the ability to back-calculate the set off time based on a fixed requested arrival time.
This must be developed in an oo and modular manor so that it can be applied easily to a number of different sites. An admin interface will be provided to allow for the configuration and modification of parameters.
There will be a round of clarification at the start of the project and the scope will be fixed after this consultation.