Tea: If you don't like coffee, you can use tea bags instead. Just place 2-3 tea bags inside the confined space. The tea leaves in the bags will not only absorb the trash can smell but will also release the natural aroma of tea.
Orange peels: Get an orange and poke it with a sharp object like a needle or fork to form small holes. Place each of the cloves inside these small holes until most of the orange surfaces are covered. It may look like a hedgehog with the cloves jutting out of the orange fruit. Leave it in the confined area for a couple of days. The area will smell nice with the said combinations.