HTML and CSS Reference
In-Depth Information
See Also
For more information about geocoding, see http://code.google.com/apis/maps/documen
tation/geocoding/ .
8.5 Getting Directions from the Current Location
Problem
You want to get directions from the user's current location to a specific address.
Solution
Use the Google Maps API to display the route the same way the Google Maps website
would, and give the user the option to output the distance in miles or kilometers, as
shown in Figure 8-4 .
 
Search WWH ::




Custom Search