added getLocationsInDirections