CoStar, a commercial real estate information provider, has agreed to buy Homesnap for $250 million in cash. Homesnap operates an online and mobile real estate platform used by more than 300,000 real estate agents across the US. Founded in 2012, the Bethesda, Md.-based company is backed by investors including Revolution and Moderne Ventures.