Directions with Options
When calculating directions request options can be used to modify how the route is calculated. Render options can be used to customize how the route is displayed on the map. In this example driving directions are calculated in kilometers and set to avoid highways. The route line is rendered green and thick, while the title of all waypoints are replaced with an empty string to hide the default behaviour.
Running this code will display a map with a route from London, UK to Madrid, Spain, going through Paris, France which looks like this.
See also this sample on Fully Custom Waypoint Pushpins