Plаintiffs-petitioners seek a writ of mandamus to compel the supervisors of Mapleton Township to issue them a building permit for erection of a gasoline filling station. Their property is situated about three miles north of the corporate limits of the city of Sioux Falls on U. S. Highway 77 about l/8th mile north of where such highway intersects Interstate Highway 90. From a judgment granting a peremptory writ, the township board and certain adjoining and neighboring property owners who were granted leave to intervene appeal.
The legislature in 1959 amended the statute which grants powers to townships and limited the amendment to those located within four miles of a city with a poрulation of 50,000 or more. 1 The amendment in subdivision (f) empowered such townships "To prescribe the manner of constructing buildings and structures to be erected within the township, and to require that a building permit shall be first obtained from the board of township supervisors before the construction of any building or structure within the township." By virtue of this authority the following ordinance *249 was adopted: "BE IT RESOLVED by the Board of Supervisors of Mapleton Township at its regular meeting held at the Mapleton Township Hall in Renner, Minnehaha County, South Dakota, on May 29, 1959, that no person shall erect, construct, enlarge, alter or repair any building or structure within Mapleton Township without first obtaining a building permit from the Clerk of Mapleton Township. A written application for such permit shall be made showing the use to be made of the building or structure and the details and the manner of construction, alteration or repair.”
Petitioners 2 Breckweg and Chambers own contiguous lots on which residences have been built. On November 20, 1963, each granted Phillips Petroleum Company 3 a sixty-day option to purchase his separate property. Within time limits, Phillips exercised the options. As a condition precedent to a binding obligation, the option agreements required Breckweg and Chambers to obtain from "* * * local governmental authorities appropriate zoning and/or other necessary permits authorizing use of the property as a gasoline and oil service station and merchandise store, * * *". On December 17, 1963, the optionors made written request of the township board for issuance of a building permit for a service station. On January 13, 1964, the chairman wrote optionors' counsel rеferring to the ordinance supra and asked for supplemental information on location of driveways, buildings, storage facilities and items of construction to be used. Additionally he wrote in the concluding paragraph: "The informal opinion of the Board of Supervisors is that this is probably not a suitable area for the construction of a gasoline filling station, but we will reserve judgment on this until the plot plan showing details and manner of construction of the proposed gas 'station are submitted." 4 This action followed a few days later.
*250 Intervenors 5 own and occupy residential property in the area of the proposed location of the service station. Two of them live on adjacеnt lots. The average valuation of the residences is about $16,000. Water is obtained from sand point wells at a depth of from 24 feet to 28 feet. Sewage disposal is via septic tank with tile drain. Each residence has its own water supply and sewage disposal system. The construction plan contemplates moving petitioners' residences and location of the service station in place thereof.
At the hearing on the return of the alternative writ each of the supervisors testified that in his opinion a filling station in the proposed location would be detrimental to the health, safety and general welfare of the people residing in that area and gave such as the reason for denying the permit. 6 The only other witnesses were three intervenors, i. e., Mr. and Mrs. Underberg, whose property abuts the rear lot line of the Breckweg property, and Reuben Dahl, whose back property line joins the back line of the Chambers property. Dahl is a building contractor who made a practice of buying lots in the area, building homes thereon, and then selling the completed residences. These witnesses expressed apprehension that a gas station in close proximity to their residences might affect their water supply, be dangerous to small children living in the neighborhood and because of aesthetic reasons might diminish property values in the area.
No claim is made of noncompliance with any building codes and regulations 7 or zoning ordinances and restrictions. Evidently the township has never adopted any building codes or regulations since none have been called to our attention, оr en *251 •acted any zoning ordinances. 8 There is no contention that the •area is within any rural zoning district as such may be designated by the county commissioners. 9
In the petition for a writ respondents herein contend (1) the township board acted illegally, capriciously, arbitrarily and unreasonably in denying the application for a building permit, and (2) the ordinance was vоid and unconstitutional because it did not provide standards and guidelines for the exercise of any discretion permitted to the board. In resistance, appellants assert that in the exercise of a sound discretion they were authorized to deny the building permit because the construction of such filling station would be detrimentаl to the health, safety, and general welfare, and would constitute a nuisance. They also attack use of mandamus as an available remedy in the present case.
We are satisfied mandamus was a proper remedy under the circumstances to compel the township board and its officers to issue the building pеrmit. Although mandamus is generally employed to compel performance of duties ministerial in character, it can also be used where judgment and discretion are involved to compel a legal exercise thereof. SDC 1960 Supp. 37.4501; Tubbs v. Linn,
A civil township is a political subdivision of state government and like counties and municipalities, its right to act is dependent upon a grant from the 'state. It has only such powers as are expressly delegated by the state or are necessarily implied from expressly delegated powers. South Dakota Employers Protective Ass'n v. Poage,
It has been held that municipalities and townships have the power to regulate gasoline filling stations within their boundaries, and even to prohibit them in certain zones where the facts warrant it, but when this power is exercised a necessary concomitant is a valid enabling ordinance which classifies and then prescribes special regulations because of their peculiar characteristics. Hоwever, their restriction and regulation is always subject to the test of reasonableness. Socony Mobil Oil Co. v. Township of Ocean,
*253 Appellants recognize the absence of any violation or noncompliance with building regulations or zoning ordinances as a predicate for denial of the building permit. Nevertheless, they say SDC 27.21 makes the township board of supervisors a board of health, and in the exercise of a sound judgment and discretiоn they had the right to anticipate the erection of a filling station at this location would be detrimental to the health, safety, and general well-being of people residing in the area and would be a nuisance and for such reason deny the building permit. We do not agree.
In this automotive age courts are unanimous in holding thаt a gasoline filling station where petroleum products” are stored and sold is not a nuisance per se. Brown v. Easterday,
We see no merit in appellants' argument that after the township supervisors testified that the еrection of a service station at the proposed location would endanger the health and safety of residents adjacent thereto a burden devolved upon respondents to produce some evidence to the contrary. The permit was sought for a lawful business. There were no prohibitory-building regulatiоns or zoning ordinances. There was no burden on petitioners to negative what did not exist as a valid reason for denying the permit. 62 C.J.S. Municipal Corporations § 227(3).
Generally an owner of property is entitled to use-it as he sees fit and any ordinances which seek to inhibit its free use are strictly construed. Well founded doubts as to the meaning and scope of restrictive ordinances should be resolved, in favor of the free use of property. See City of Sioux Falls v. Cleveland,
Lastly appellants assert since petitioners did not answer the complaint of the intervenors which alleges the erection of the filling station would be detrimental to the health, safety and general welfare of the township and would constitute a nuisance, that the truth of such allegations is admitted and consequently the writ should have been denied. SDC 1960 Supp. 33.0413 allows a complaint in intervention in proper cases and if permitted provides that both appearing and nonappearing parties may answer or plead to it as if it were an original complaint. Under this section the filing of a responsive pleading is not mandatory. Where the petition for a writ and the answer of the township as in this case raise the issue before the court, an answer to the complaint in intervention would sеrve no particular
*255
purpose and is not necessary. Board of Education, etc. v. Whisman,
Further, the hearing proceeded as if the issues were ■complete and this procedural irregularity, if it be considered such, was not raised in the trial court. We have repeatedly said when such questions have not been raised аnd preserved in the trial court, this court will not consider them on appeal. Nelson v. City of Sioux Falls,
The constitutional question alleged in the petition was not determined by the trial court and was not necessary to the relief granted. This makes it unnecessary to consider it on appeal. Haas v. Independent School Distriсt No. 1 of Yankton,
The board of supervisors without reason valid in law denied petitioners a building permit. This they could not do. The trial court correctly entered judgment directing issuance of the peremptory writ.
Affirmed.
Notes
. Chapter 448, Laws of 1959, now SDC 1960 Supp. 58.0201(9).
. Reference is made to Breckweg and Chambers in the singular; co-petitioners are their respective wives.
. Phillips Pеtroleum Company is referred to as Phillips. After the action was commenced, Phillips consented to joinder with petitioners and the court so ordered.
. No issue has been raised as to the form of the application for a building permit, its direction to the supervisors and not the clerk, and the nonjoinder of the clerk in the action. Consequently we assume the regularity of the application, its subsequent denial and other procedural compliance, or that such omissions or irregularities, if any, have been waived.
. The petition for leave to intervene lists ten ‘‘Mr. and Mrs.” owners and two single owners and was signed by counsel for such petitioners. Only eight of the former are named in the final judgment. Mr. and Mrs. Ernest Kittleson and Fete Paa signed a withdrawal. They, together with Mr. and Mrs. George Houtsma and Alfred Koopman, are not named in the judgment. The lot and residence of Pete Paa is adjacent to the north side of the Chambers property.
. A few weeks before the denial of this application, the supervisors granted a building permit to a Sioux Falls construction company for the erection of a truck stop, cafe, and filling station for Mobil products to be located on the east side of U. S. Highway 77 directly across the highway from the Breckweg and Chambers property.
. The design of the proposed filling stаtion is of a pattern generally constructed by Phillips in South Dakota and elsewhere. No specific objection was made to the design, plans, materials, pumps, lighting, or any other features of the proposed station.
. Chapter 448, Laws of 1959, now SDC 1960 Supp. 58.0201(9) (h) granted townships power “To regulate and restrict the height, and size of buildings and other srtuctures and the location and use of buildings, structures and land for trade, industry, residence or other purposes, with the object of promoting the health, safety, morals and the general welfare of the township, and for such purpose to divide the township into districts for zoning purposes. * * * The powers as provided in this subsection shall be subordinate to any zoning or other powers of the county or adjoining city when such powers are, or shall be, exercised by said county or city in respect to said township.”
. Rural Zoning Law (1941), SDC 1960 Supp. Ch. 12.20A. Amended Ch. 37, Session Laws 1961. "When adopted this statute at length detailed its purpose, method of procedure, providеd for a zoning commission, for changes and adjustments, for appellate review, etc. The same was true when municipalities were granted the right to zone, (1927) SDC 45.26. Similar guides are contained in the Model Airport Zoning Law vesting zoning powers in the South Dakota Aeronautics Commission, (1943) SDC 1960 Supp. Ch. 2.05. No statutes prescribing guidelines and procedures on zoning were enacted as a part of Ch. 448, Laws of 1959. (See Note 8.)
