delivered the opinion of the court.
This was a proceeding in the name of the territory to compel the defendant, the Northern Pacific Railroad *309Company, to furnish for the convenience and use of the public a depot and other facilities for the transaction of business at Yakima City, in the county of Yakima. The case was heard on the pleadings and proofs, and a judgment, substantially as prayed for, rendered by the District Court which has been brought here by the defendant for review. The facts established by the pleadings and the findings of the jury thereunder were substantially as follows: —
In January, 1885, the defendant had completed its railroad up the Yakima Valley to and through Yakima City, and at its request such railroad had been duly examined and accepted by commissioners on the part of the United States as a section of its line duly constructed and finished under the charter of said company. For a short time during said month of January said company maintained an agency in said city for the transaction of freight and passenger business, but as soon as the said railroad reached a point about four miles beyond said Yakima City, where a town site had been laid out called North Yakima, it withdrew said agency from Yakima City and established it at North Yakima, and thereafter ceased to stop its trains at the former place, and ran directly through the same on to the latter, where it established passenger and freight depots for the transaction of business.
At this time Yakima City was the oldest town and largest business center on the Cascade branch of said railroad between the Columbia River and Puget Sound. It was the only town of any importance in Yakima County. It had for years been the county seat of said county, and was one of the three places in the Fourth Judicial District where causes arising under the constitution and laws of the United States could be heard and determined. It numbered five hundred permanent inhabitants; had several churches, flourishing public and private schools, a large number of business buildings, *310and many beautiful homes. It was equipped for the transaction of and actually transacted a business of two hundred thousand or three hundred thousand dollars per annum, and had available grounds upon which the company could have located its depot and other buildings; while North Yakima was simply a town upon paper, with no inhabitants save a few speculators, who, being in the secrets of the company, had located there for the purpose of profiting by the building up of a town at the expense of Yakima City and its pioneers, many of whom had for years endured the hardships of frontier life in the hope that with the advent of a railroad such prosperity would be brought upon them as would repay every sacrifice. Not only was this the relative position of the two towns as to population, industries, etc., but so far as the proof discloses, there was no material difference in the natural adaptability of the two places by way of location or otherwise for a center of railroad business. From the time the company thus moved its agency for the transaction of its business to North Yakima, it not only refused to regularly stop its trains at Yakima City, but it also refused to stop any of its trains there at any time or for any purpose, and thus compelled all passengers therefore to pass directly through to North Yakima, and then return the four miles as best as they could; and all freight had to pay tribute to North Yakima in like manner. Such was the condition of things at about the time these proceedings were commenced, and the jury found that such would have been the condition of things at the time of thé trial in the court below had the company continued to stop its trains at said Yakima City, and to give it facilities for the transaction of its freight and passenger business. It appears, however, that owing to the failure of the railroad company thus to stop its trains, the town had been to a certain extent depopulated; still at the time of trial the town contained two hotels, twenty-*311seven dwelling-houses, thirteen business houses, one flouring mill, public and private schools, and a resident population of 150. It further appears that the .said company furnished no facilities of any kind available to said town excepting at the said town of North Yakima. It was upon this state of facts that the court below acted, and in their light we must determine whether or not it acted correctly. We say that it is upon these facts that the case must be decided, for although there was a finding by the jury that the present facilities between North Yakima and Pasco were sufficient, we are of the opinion that the facts being conceded or found, the determination of what are proper facilities thereunder is a matter of law for the court, and not a question of fact for the jury. Did the facts above stated warrant the court below in rendering the judgment in question? We will first examine the matter in a general way, and then notice the particular points raised by the brief of appellant.
In the absence of legislation providing other means for regulating and controlling the matter, we have no doubt of the power of a court of general jurisdiction, in .a proper case, to compel a railroad to extend to the public proper facilities for the transaction of business. This we deem to be a necessary incident to the character of a railroad and the rights it possesses, and the relation which it occupies to the public. Without this .control, a railroad might be so managed as to be a public improvement only in name, while to all intents and .purposes, so far as results were concerned, it would be a private road, from the benefits of which the mass of the public could without reason be, at the pleasure of the company, entirely excluded. We think that, in reason, this right of control is fully established, and if we investigate it in the light of authority, our conclusion will be assured; for while the cases upon the subject are not numerous, yet those that have been cited by counsel for *312appellee, and others which we have examined, are of such authority and so conclusive in argument that we unhesitatingly accept them as the true exposition of the-law upon the subject. (See Railroad Co. v. P. & O. C. R. R. Co., 63 Me. 280; State ex rel. Mattoon v. Republican Valley R. R. Co., 17 Neb. 647; State v. Hartford etc. R. R. Co., 29 Conn. 538; High on Extraordinay Legal Remedies, 225, 227; Ruggles v. Illinois, 108 U. S. 526; Field on Corporations, 585; Moses on Mandamus, 155-169.)
That the city of Yakima was of such importance attire time the railroad reached it that the public interests required that depot facilities should be provided and trains stopped for the transaction of business is so apparent that nothing need be said to satisfy any unprejudiced mind in regard thereto. It is true that a town of five hundred inhabitants is not a large town, but when we take into consideration the fact that this town was-the largest one for a distance of hundreds of miles, and that by its age and enterprise it had established itself as. the center of business for that entire region, and grown to even that size without the aid of any railroad, it is clear to the moral as well as to the legal perception of every one that it was entitled to be fairly treated by the railroad, and to have extended to it the facilities usually given to towns of like size thus situated; and we are satisfied that there is not another instance on record where-a town as remote from others as this one, of even half its size, has been reached and passed through by a railroad, and then had all facilities denied it at the will of the railroad company. That this town was entitled to-the facilities claimed seems to have been assumed by the company at one time, as from the above facts we see-that for a short time after the road was constructed, through the town it furnished the same to as great an extent as could be expected of a newly constructed road. But as soon as the road reached a place four miles-beyond, where the country was substantially unoccu*313pied and unmarked, save by a few stakes stuck in the ground, a change came over the company, and it all at once discovered that every reason that could be named or imagined pointed to this unoccupied spot as the proper place for its depot; and that Yakima City, which in the past, unaided by outside influences, had grown into a flourishing town, while the other had only grown bushes, was no longer entitled to be thought of in comparison therewith.
The reasons which led to this change, and to this preference of the new town, which seems not only to have-been located for the purpose of absorbing the hard-earned business of Yakima City, but had inaugurated its. career in that direction by stealing the best half of its name, does not clearly appear from the record, but enough does appear therein to plainly suggest the reason for such action. Upon general principles, then, it was the duty of the railroad company to have furnished the required facilities at Yakima City, and its. failure to do so was a moral and legal wrong. But it is said that the rights of the parties must be governed by the condition of things at the time of trial, and not as of the date of the commencement of the proceedings. This may be so, but even if it is, we think that under the circumstances of this case, even the town as it existed at-the time of trial was entitled to have trains stop, and to have depot facilities furnished for the accommodation of the public; for while it is true that the showing of business at such town during the few months preceding the trial was not flattering, yet as the decrease in business-was not only the direct result of the decadence of the-town by reason of the wrongful acts of the company, but was also no doubt much influenced by the fact that in order for any business to be transacted that would show upon the books of the railroad, it had to first go four-miles away from the market center of the town, and then pay tribute to its rival. The town, small though it. *314was, thus decreased in importance, was entitled to the relief demanded, unless some of the objections to the proceedings raised by the appellant are of such a nature as to avail it as matter of defense herein. We will proceed to notice such of them as we consider pertinent, which have not already been sufficiently covered by what we have said.
1. It is objected that, as the road was still in the hands of the construction department, it could not be required to furnish the facilities in question. We think, however, that by causing such section of road to be examined and accepted by commissioners as fully completed, ■the company estopped itself from thereafter claiming that the same was still in process of construction, and that by such action the right and duty of the company to maintain and operate such section of road became fully vested and fixed. Besides, we doubt whether the courts would allow a company, even while constructing its road, to so manage it as to crush out one town on its line for the benefit of a rival one a few miles away.
2. No demand for the facilities required was ever made upon the company. That a demand would be necessary a's a foundation of proceedings of this nature to establish a mere private right, is conceded; but it is claimed by appellee that this was a question of public right, and that the company was neglecting to perform a duty which it owed to the public, and that in such a case a demand was not necessary. We think this claim is established by the facts and law of this case. (See High on Extraordinary Legal Remedies, 203, 390; Angell and Ames on Corporations, 715; Board of Commissioners of Knox Co. v. Aspenwall, 24 How. 376.)
3. That the public were not interested, and that therefore Yakima City, and not the territory, was the proper ■party plaintiff. But as we think the proof shows that the public were interested, and had rights to he protected and «enforced, we cannot sustain this objection.
*3154. That the charter of the company vested in its discretion as to the location of its stations, and that this •discretion could not be controlled by the courts. We do not think Congress ever intended to do more, by the section of the charter of the company upon which this claim is founded, than to authorize it in a general way to locate its stations where it might think necessary, and it seems clear that Congress never could have intended to make such company the sole judge in this matter, as between its own interest or favoritism, and the rights of the public at large. Such a construction would be clearly against public policy, and would only be adopted by the courts where no other was possible, and we do not think the language made use of in said section such as to oblige us to construe it as claimed by the company.
5. That the granting of the relief prayed for is an encroachment on the legislative power, and not the exercise of judicial authority. We have already indicated our views upon this point, and need only to say, in addition, that in our opinion the authorities cited by appellant are not in point, and do not warrant the construction placed upon them by counsel.
6. That the judgment rendered, directing the issuance of a peremptory writ ordered that the acts therein commanded should be performed immediately, and that as this was impossible, the judgment was void.
In our opinion, there is nothing in this position, as we "think the judgment, fairly construed, did nothing more than to command that the duties therein enjoined should be entered upon at once and prosecuted with diligence until completed.
We think the court below committed no error, and it follows that the judgment must be affirmed, with costs, and the cause remanded for further proceedings, and it is so ordered.
Greene, C. J., and Langford, J., concurred.