delivered the opinion of the court:
Cities Service Oil Company brought suit in the circuit court of Cook County against the city of Des Pláines and certain of its officers, to enjoin enforcement of an ordinance prohibiting the location of a gasoline station within 300 feet of any school, hospital, church or theater. From a decree granting relief the defendants appeal directly to this court, on the theory that validity of the ordinance is involved. A cross-appeal has been perfected from that portion of the decree ordering plaintiff to pay the costs and master’s fees.
Plaintiff’s property is located in a commercial zone, wherein filling stations are permitted uses. Less than .300 feet away is the Free Will Baptist Church. The real estate in question, together with other parcels, wás acquired by the plaintiff on September 3, 1957, after about a year’s negotiations with the vendor. The preceding August 30, the vendor had received a building permit for construction of a gas station on the subject property. On October 16 transfer of the permit to the plaintiff was approved by the building commissioner, and construction was begun about February 19 or 20, 1958. According to the plot plan the underground tanks would be located 127 feet and the two pump islands 104 feet from the nearest boundary of the church property. About three weeks after construction was started, and after the footings, foundation work, installation of tanks, underground plumbing and rough grading of the property had been completed, the police appeared and stopped the work. By subsequent letter to the plaintiff dated March 19, 1958, the mayor revoked the permit, stating ordinance violation as the reason. The plaintiff by that time had paid the contractors $5,373.46 for work done; and the evidence showed that it would cost approximately $1,050 in addition to remove the improvements and restore the property to its former condition.
The master to whom the cause was referred found that before undertaking construction the plaintiff had attempted without success to secure copies of ordinances relating to service stations; that it had no knowledge the work was in violation of any ordinance; and that it acquired the real estate, obtained assignment of the building permit, and undertook construction in good faith. On exceptions to the master’s report the court made similar findings, concluding that the construction work was undertaken by the plaintiff after affirmative action and apparent approval by the public authorities, and that the city and its officials are estopped from preventing erection of the service station.
The ordinance was adopted in 1955 and provides, among other things, that “no tank, container, pump, pipe or other equipment for the storage and handling of gasoline or any other flammable liquid shall be installed within 300 feet of the nearest boundary of any lot or plot of ground used for a school hospital, church, or theater.” Penalties are provided for violations; and by the terms of the ordinance each day that a violation occurs is deemed a separate and distinct offense. Plaintiff produced testimony that it had been given a copy of an ordinance no longer in effect, under which a ioo-foot location was prescribed. Evidence was also introduced to show that the operation of a gasoline service station would not create a greater hazard to health and safety than other uses permitted in ■ the immediate vicinity of the church; that the rules and regulations of the Illinois Department of Public Safety provide for a minimum distance of only 85 feet from any schoolhouse, church or hospital; and that elsewhere in the city there is a Lutheran church immediately adjacent to a service station and a high school under construction next to another gas station.
The power of cities to provide for the location of gasoline stations at reasonable minimum distances from schools, churches and the like is no longer open to question. Such ordinances are designed primarily to guard against danger from fires, and unless the particular requirement is shown to be arbitrary and unreasonable its validity will be upheld. (Chicago Title & Trust Co. v. Village of Lombard,
' Defendants insist that the court also erred in holding them estopped from preventing erection of the service station. The general rule is that a city cannot be estopped by an act of its agent beyond the authority conferred upon him. (Rippinger v. Niederst,
The general rule is qualified, however, to enable a party to invoke the doctrine where his action was induced by the conduct of municipal officers, and where in the absence of such relief he would suffer a substantial loss and the municipality would be permitted to stultify itself by retracting what its agents had done. (City of El Paso v. Hoagland,
In Hurt v. Hejhal,
In People ex rel. Deddo v. Thompson,
We think that under the special facts and circumstances in the case at bar it would likewise be inequitable for the city to enforce removal of the improvements installed in reliance upon the permit. Plaintiff has expended large sums of money in reliance upon the permit and the apparent acquiescence by the city officials. Insofar as this record shows the property was purchased, and improvements of a permanent character were made thereon, in entire good faith, after plaintiff was induced to believe no violation of any law was involved. Although a comprehensive city plan was investigated and adopted in the interim, the permit in question remained outstanding for seven months before the mayor revoked it. Under these circumstances it would be highly unjust to enforce the public right and compel the plaintiff to suffer a substantial loss.
Defendants invoke the rule that every person is presumed to know the extent of a municipal officer’s power; and they argue that unless the citizen is held to the responsibility of informing himself as to the existence of ordinances he would be “rewarded for remaining ignorant.” There is no doubt that if one is aware of the applicable ordinance, or makes no attempt to know of it, the issuance of a permit contrary thereto does not create an estoppel against the city to forbid any further work on the building. (Sinclair Refining Co. v. City of Chicago,
It is contended, for the first time in this court, that because the plaintiff proposes to install three tanks, each having a capacity of 4000 gallons, it is in violation of an ordinance prohibiting the storage of petroleum “in quantities exceeding 10,000 gallons in containers of not to exceed 5000 gallons capacity each.” Aside from the fact that the question was not determined by the trial court, it is evident that the capacity of plaintiff’s tanks is less than 5000 gallons each and that the restriction relating to totals is a restriction on quantities actually stored, rather than on capacity. No violation of this restriction has been shown here.
Defendants make-the further claim, also not raised in the trial court, that the plaintiff has an adequate remedy at law and is therefore not entitled to injunctive relief. The basis for this contention is that plaintiff’s loss was caused by negligence- of the building inspector, against whom an action could be brought for damages. The contention cannot be accepted. The case is an appropriate one for equitable relief. See Sinclair Refining Co. v. City of Chicago,
By the cross-appeal it is urged that the court erred in taxing the costs, including master’s fees in the amount of $1,503.95, against the plaintiff. The only matter argued in support of the contention is the fact that the equities of the case were found in the plaintiff’s favor. There is nothing to show that plaintiff did not cause additional or unnecessary costs, or that there were no other considerations justifying the chancellor’s decision in the matter. Under the statute it is within the discretion of the court to award costs or not (Ill. Rev. Stat. 1959, chap. 33, par. 18); and plaintiff has failed to show, an abuse of discretion here. Cf. First Nat. Bank of Chrisman v. Watson,
Other points are raised by defendants which have no merit and need not be discussed. The decree of the circuit court is" affirmed.
Decree affirmed.
