Method to get travel duration from Directions API