The interim housing assistance program, or IHAP, is the federal program that funds these transitional housing services. However, right now, that funding is only given directly to provinces or municipalities. That's what was used to pay for hotels, for example.
