Added reverse method to DirectionsUtil.