Added direction.get endpoint method