Every gas, water, or railroad corporation has the power to lay conductors and tracks through the public ways and squares in any city with the consent of the city authorities, and under reasonable regulations and for just compensation, as the city authorities and the law prescribe.
Idaho Code § 40-2308