I have a prospective client who operates an auto shipping business and wants to have a realtime shipping estimate feature on his site...

i.e. the customer picks a destination and origin, hits submit, then the script spits out an estimate based on the distance between the two locations.

First off, has anyone come across a script (any language) that might accomplish this task.

If not, could anyone comment on an equation that may work for this... I can build the script, but I'm not up on my grid-math...

I.E.

(standard unit = 1 mile)

Point A = X25,Y78
Point B = X86,Y34
--------------------

etc...I forgot how to calculate the distance between grid coordinates...any suggestions? or sites to review for this type of info?

Any help would be great. I would appreciate it.

The working example is at http://www.automoving.com

Thanks in advance!