When the document initially loads a Google map is displayed with a marker placed at the White House. Clicking the directions button results in a permission dialog from the browser to share the user's location via HTML5 geolocation services. When permission is granted, a map from the user's location to the destination with turn-by-turn directions is displayed.