Using postcodes to work out distance

September 2, 2009 at 20:47:23
Specs: xp
Hi,

I am currently designing my very first website using Microsoft FrontPage. I am finding the WYSIWYG editor pretty simple to use but there is feature I am hoping to add to the site and I don’t have a clue how to do it!

What I would like is a feature that will work out a quote (for a car delivery business) based on mileage. To do this user would have to type in a ‘From Postcode’ and a ‘To Postcode’. The site will then work out the distance (in miles) between the two postcodes and report back a quote to the user based on a simple formula that would convert the miles into pounds. An example of the kind of thing I am talking about can be found here: http://www.autoquake.com/used-car-d...

This site http://www.postcode.org.uk/free-pos... displays a bit of code to add to your own site that will work out the distance and display it in a small table, but, as I want my site as professional looking as possible I would rather not show any graphics from other sites.

Could I potentially get the mileage from a site such as the one above without displaying their graphics??

I am a complete beginner to web design and I imagine what I am asking for could be quite complicated, but, if anyone can give me any ideas on how I can achieve this it would be much appreciated.

Loll


See More: Using postcodes to work out distance

Report •


#1
September 2, 2009 at 22:18:24
If you don't want to use someone else's site, you are for sure going to need a database (such as MySQL) and some sort of scripting language (such as PHP). While the two technologies I mention are free, you will still need to know how to use them.

You are probably best off purchasing a already made script and database from someplace such as the site you linked to.

-Ryan Adams

Free Computer Tips and more:http://RyanTAdams.com
Paid Tech Support: Black Diamond


Report •

#2
September 3, 2009 at 07:18:18
Can anyone suggest somewhere where I could purchase such an 'already made script and database' for as cheap as possible?

I would try the postcode.org.co.uk site but they seem to only work out the shortest driving route... I am looking for the fastest driving route.


Report •

#3
September 3, 2009 at 07:42:58
I was thinking about this last night. You may be able to use the Google Maps API to do this. You will still need to use some sort of scripting (again, I would suggest PHP), but you may be able to piece together a working script using info others have already provided. See here for more info on this: http://www.google.com/search?hl=en&...

-Ryan Adams

Free Computer Tips and more:http://RyanTAdams.com
Paid Tech Support: Black Diamond


Report •

Related Solutions


Ask Question