Google Maps API v2 example by Marcelo
Implements a bunch of nice features – does get directions between two points (with optional waypoint). Shows line on map, distance and travel time. Has 5 selectable points-of-interest categories; each selected will show up along route if they are within the given distance-from-line (“search radius”).
Also uses the js library parallel_lines.js to add shading at the radius distance all along the route, and uses a ‘loading…” overlay when the poi category is clicked. Nice!