Example of interfacing for road distance and directions
This example also uses the Google Maps API to get directions between two postcodes and illustates how the road distance can be obtained from the Google API and
compared with the straight-line distance calculated by locations.module. The Javascript is a little more complex, but still only amounts to 100 lines. Input an origin and
destination postcode and click the "get directions" button to see the directions.