This example shows how to check for errors in the start and end locations before displaying the directions.