After a months-long search and a lawsuit, a Johnson County nonprofit has a place to shelter the homeless — now and for the next three winter seasons.

Lenexa has reached an agreement with Shawnee Mission Unitarian Universalist Church, which sued the city after it wasn’t allowed to operate a homeless shelter this winter. As of Friday, the nonprofit Project 1020 could begin operating the shelter inside the church building, a former elementary school at 9400 Pflumm Road.

“The city of Lenexa wants to be part of a comprehensive solution to the homeless issue in Johnson County. This agreement will enable the homeless population to be served temporarily while we work toward a comprehensive solution that serves the entire community,” Lenexa City Manager Beccy Yocham said in a statement Friday.

(Read more: Kansas City Government & Politics News |)