Implemented callback on getDirections