Module/component for Joomla 1.5 is needed to match following specification:
- fully compatible with Joomla 1.5
- unlimited instances can be installed across the same site
- using Google Maps post code lookup for UK (United Kingdom) and Eire
- back end: values set in admin panel: initial location, option to set up to 5 different charges, based on the final distance (cost_per_mile).
initial_location = 'SE1 3ER'
if distance < 50 miles
then cost_per_mile = £2
if distance > 50 miles and < 100 miles
then cost_per_mile = £1.5
and so on, up to 5 different choices. Both values ( miles and costs) to be editable, not all 5 options would be required for module to work.
- front end/user input: 'enter destination' field with input validation to match the UK post code formats, 'calculate travel costs' button, 'display results' button (without refreshing the whole page), 'refresh/start again' button.
destination (input field) = 'OX1 1AB' (an example of possible user input)
'calculate travel costs' (button)
display results: 'Distance to OX1 1AB = 65 miles. Total travel costs (both ways) = £195"