delivered the opinion of the court.
The Circuit Court sustained a demurrer to the petition of appellant upon two grounds: First, that the ordinance granted by the City of Chicago to the telephone company, which is set out in full in the petition, constitutes in substance a contract between the parties, notwithstanding statements are required of the appellee and payments are provided for which might tend to benefit the public; and that the writ of mandamus will not issue to enforce a mere contract. Second, that mandamus will not be awarded where it is sought for the enforcement of a mere abstract right and will not definitely fix the rights of the parties, even though the right of the petitioner under the contract is clear. It was held that even if the right of the city under the ordinance to a statement from the telephone company of its receipts within the city limits as the latter existed at the time of such statements be conceded, nothing would be settled by the issue of the writ; that the city would not be bound by the statement of the telephone company and the company might not be; that the writ would not therefore be awarded where it does not clearly appear that it will definitely settle the rights of the parties.
It is said in behalf of appellee that the only pertinent questions upon this record are such as relate to appellant’s right to invoke the remedy by mandamus, and that the extent of the rights and obligations created by the ordinance in question can more properly be left for settlement in a pending suit between the parties (see The People v. Chicago Telephone Co., 220 Ill. 238); that mandamus will not be awarded to enforce private obligations resting on contract; that an obligation created by acceptance of an ordinance to pay money compensation to a municipality for the privilege of using its streets is contractual and that mandamus will not be granted to enforce a doubtful right; and it is said that appellant is not entitled to the relief sought for other reasons which, in the view we take, we deem it unnecessary to consider.
It is said by counsel for the city that certain portions of its petition were erroneously expunged by the Circuit Court. Those expunged portions which appellant appears to consider most important set forth in substance that appellee applied to the city for permission to place its poles and wires in certain streets and alleys, that the right given it in that behalf by said ordinance was its sole and exclusive authority for so using and occupying such streets and alleys, that notice was given to appellee that it would be required thereafter to include in its .report and percentage all business done in subsequently annexed territory, and that the receipts from long distance telephone business were not included in any reports made by the company nor was any percentage of receipts of such business paid to the city. Treating these as material and for the purposes of the argument as legitimate averments of the petition, the question to be determined is whether the city is entitled to the writ of mandamus for which it prays, requiring the telephone company to file a true statement of its gross receipts' from all business within the present city limits and to pay into the city treasury three per cent, on such gross receipts.
It is conceded by counsel for appellant “that the obligations of a mere private contract cannot be enforced by mandamus,” but it is urged that the principle has no application in this case, and that the judgment of the Circuit Court amounted to a clear abuse of discretion; that a city ordinance is a law, rights and duties under which can be enforced by mandamus, even when resting partly upon contract; that even if the ordinance in question be deemed a mere contract, it is not a private .contract, and that the remedy sought cannot be defeated upon the ground that such ordinance is also a contract or because it would compel the payment of money. It has been held in this state that where there is a grant and acceptance by a corporation of an ordinance involving the performance of acts in the nature of duties or services to the public as a condition of the grant, “the corporation accepting the franchise may be compelled by the writ of mandamus to perform the duty so enjoined by the grant and consented to by the acceptance thereof.” The People v. Suburban R. R. Co., 178 Ill. 594-604. In that case it was sought to compel the respondent corporation to comply with the express provisions of an ordinance which it had accepted, which provisions created “a duty to the public to be performed by the company for the benefit of the public.” It was urged m behalf of the corporation as “fundamental law” that “mere contract obligations cannot be enforced by mandamus.” The court, however, held it to be “now well settled that when there is a grant and acceptance of a public franchise involving the performance of such acts or service, the corporation accepting the franchise may be compelled by the writ of mandamus to perform the duty so enjoined by the grant and consented to by the acceptance thereof.” The writ was awarded commanding the company to sell tickets to passengers, good to stations in River Forest, at the. same rate as to stations in Cicero, as the ordinance required; and the court said (p. 606): “The fact the ordinance requires the company should formally accept it as conditioned had no effect to render the grant a mere private contract.” In Rogers Park Water Co. v. Fergus, 178 Ill. 571, a writ of mandamus was awarded fixing water rates as provided by an ordinance of the City of Chicago enacted subsequent to the annexation of Rogers Park to said city, which rates were lower than those fixed in the original ordinance of the village of Rogers Park, which was accepted by the water company, under which ordinance it had laid its pipes and previously operated its water works. It was held that the ordinance of the village and its acceptance did not constitute a contract that the rates fixed by the ordinance should remain fixed and unchanged and that no such “contract obligations arose by reason thereof” (p. 578). In these cases the writ as awarded enforced rates for services which the corporation agreed to render to the public where a clear right was thought to exist.
In Chicago Mun. Gas Light Co. v. Town of Lake, 130 Ill. 42, which was a bill in equity to enjoin the town from interfering with the company in laying gas pipes in the streets, it was held that the company by acceptance of its ordinance undertook to perform a service for the public benefit of the town and its inhabitants, which undertakings were a sufficient consideration for the contract based on the ordinance, and that this was a valid and binding contract which the town could not abrogate by repealing the ordinance. In like manner ordinances of a municipality granting licenses to public service corporations for use of public streets are said in Belleville v. Citizens Horse Ry. Co., 152 Ill. 171-186, to be licenses which when accepted become valid and binding contracts. In The People v. The Central Union Telephone Company, 192 Ill. 307-311, it is expressly stated that the grant by the city of the right to use the streets “is not a franchise, but a license or contract,” which “could not be revoked or rescinded except for cause.” So also in Chicago Telephone Co. v. N. W. Telephone Co., 199 Ill. 324-347, Chicago Glen. Ry. Co. v. City of Chicago, 176 Ill. 253-259, and there are other cases. We conclude it.to be established in this state that a corporate franchise emanates from the government or the sovereign power; that where a corporation is created by law with power to make use of city streets upon the consent of the city under such conditions as may be imposed, and by ordinance such consent is given and privilege granted, “the grant by the city is a mere license and not a franchise; ’' Belleville v. Citizens Horse Ry. Co., supra, p. 185; City of Chicago v. Rothschild, 212 Ill. 590-592; that the corporation accepting such license may be compelled by mandamus to perform the public duty and render the service enjoined by the grant and consented to by its acceptance ; that such license when accepted becomes a valid and binding contract with the municipality, but that such acceptance has not the “effect to render the grant a mere private contract” not enforcible by mandamus (Rogers Park W. Co. v. Fergus, supra) where a clear right exists to compel the corporation to render services to the public in the manner in which it agreed to render them in accepting the ordinance with its privileges and obligations.
In the case at bar the provisions of the ordinance which it is- sought to enforce by the writ of mandamus are those requiring the city to file a statement of its gross receipts from all its business within the present city limits which have. been extended since the ordinance was accepted by the appellee, and to pay into the city treasury the stipulated three per cent, upon all such gross receipts of every nature and kind. There is, in our opinion, a clear distinction between the purely contractual obligation to render the statement and pay the percentage required by the ordinance, and an obligation to render the express service to the public which is the primary purpose stated in the ordinance for which the privileges granted by it are given. If for example the telephone company was refusing to furnish the use of its telephone lines and apparatus as its ordinance requires to one section of the city on equal terms with other sections, or was demanding exorbitant compensation not warranted by the ordinance which it has accepted and under which it is operating, and a writ of mandamus should be sought to compel it to perform the duties and render the services to the public upon which the grant by the city was conditioned, the questions presented would be very different from those before us in this record. The agreement to render such services to the general public may be deemed in a sense imposed by law, and stands upon a different basis from the more purely contractual obligation to make a statement and pay compensation to the city. The latter may be deemed an agreement with the corporation in its private and business character, which agreement while it may indirectly benefit the citizens by increasing the city’s income aside from taxation, does so in the same way as the income derived from a water system operated by a municipality. In such case the city stands upon the footing of a private corporation or individual rendering the same services, which may be a special advantage to the municipality as distinct from the public at large. Wagner v. City of Rock Island, 146 Ill. 139. The same distinction is stated in Suburban By. Co. v. People, supra, on page 608, where it is said that “the village in its corporate capacity has no interest in the enforcement of duties owing by the company-to the public. As a corporate entity the village is not affected by compliance or non-compliance with the rates of fare charged or collected- by the respondent from the passengers. The writ relates to a matter affecting the public.” Therefore the writ of mandamus was granted.
In cases where, as in this, the provision of the ordinance sought to be enforced is in the nature of an executory contract, it is one which the court “has no. jurisdiction by mandamus to compel the performance of.” People v. Dulaney, 96 Ill. 603-511. In the case at bar as in that cited, it may be said that the duties which relator asks to have the respondent perform “arise out of the alleged contract,” that “ it is only practicable by mandamus to compel the performance of specific acts where the duty to discharge them is clear and well defined and when no element- of discretion is involved in the performance.” The performance of the contract to pay compensation which is set forth in section 6 of the ordinance under consideration requires the exercise of discretion and judgment in determining what are the gross receipts “within the limits of the city” upon which the latter is entitled to compensation; the determination of a legal question as to what city limits are referred to, which, no matter what we may think about it, is nevertheless not made clear by the language of the ordinance and has been a matter of judicial consideration in litigated cases, some of which are cited by appellants. “In such cases mandamus is not an appropriate remedy.” Idem, p. 512. “It is well settled that in a doubtful case this writ should not be awarded. It is never awarded unless the right of the relator is clear and undeniable and the party sought to be coerced is bound to act.” North v. Trustees, 137 Ill. 296-301, and cases there cited. We are of' opinion that this contractual section of the ordinance under consideration should not be enforced by mandamus. As said in High on Extraordinary Remedies, sec. 321: “The nse of the writ is limited to the enforcement of obligations imposed by law,” and not those “arising out of contract relations.” See also State ex rel. New Orleans v. New Orleans R. R. Co., 37 La. Ann. 589, in which the same proposition is affirmed; and the People ex rel. v. Trustees 51 Ill. 149.
We concur with the Circuit Court that if mandamus should be awarded in this case it would not necessarily ' define and settle the rights of'the contending parties under the section referred to of the ordinance.
■ The judgment of the Circuit Court will be affirmed.
Affirmed.