|
|
Welcome to the Driving Distance Calculator
Powered by Google Maps©
|
|
The intent of this driving distance utility is to provide a resource for programmatic access
to accurate driving distance calculations.
|
Instructions:
The service works using a GET post to http://www.jbcg.net/maps.php. Following is a list of the arguments you can pass
to the page.
saddr="Starting address in the following format [Street Address] [City], [Two State Code] [Zip Code]."
daddr="Destination address in the same format as the saddr argument."
map="Set this argument to 'on' in the GET post to display the map showing the driving route."
directions="Set this argument to 'on' in the GET post to display the directions associated with the driving route."
clean="Set this argument to 'on' to force a redirect to a page that only contains the driving distance in miles."
A sample of the proper usage of the page is as follows...
http://www.jbcg.net/maps.php?saddr=1 Infinite Loop Cupertino, CA 95014&daddr=1419 West Oregon Avenue philadelphia, PA 19145&map=on&directions=on
The previously listed example is not URL encoded, most browsers do this automatically for URLs pasted into the address
field. In order to use this web page from another web page or program all GET posts must be URL encoded.
|
|
|