Requirements
- request cab type, start location, end location, date & time (The company provide 3 types of car service. Saloon, MPV and VIP.)
- validate input
- send HTTP request to Google Directions API with start and end location
- parse json response
- validate response
- calculate distance in km from response (Minimum charge is £15 for the first 1.5km. And then if possible editable section on the form, where the company can increase or decrease the price per kilometre.)
- perform result sanity check
- calculate price based on distance (MVP price is 50% increase from saloon price. VIP 100% increase.)
Something very similar to this. https://www.addisonl...om/quickbooker/
Please put JavaScript files on its own. I will be using joomla 1.6 and Chronoforms to create the form.
This post has been edited by fat_boy: 06 September 2011 - 08:18 PM
Help



This topic is locked










