This is an application for a mandamus to compel the delivery to the petitioner of certain bonds of the city of Stockton, issued under the act of April 1, 1870 (Stats. 1869-70, p. 551), and placed in the hands of the trustees named in the tenth section of the act. The petitioner claims to have performed the conditions upon which .it was to become entitled to the bonds under the terms of the act. This is denied by the respondents, who resist the application on the ground, first, that the portion of the road lying between the city of Stockton and Peters, 14J miles in length, was not constructed by the petitioner, but by another railroad company, by which it was sold and conveyed to the petitioner. Second, that the road as located and built does not pursue the route prescribed by the act. There are several minor objections, which, however, may be considered under these two general heads.
First. It is clear from the whole act, that the purpose of the subsidy was to aid the railroad company in establishing railroad communication from the water front in Stockton, “through the county of San Joaquin and up the San Joaquin Valley, in the direction of the town of Visalia, county of Tulare.” (Stats. 1869-70, p. 551.) At the passage of the act, no work had been done towards the construction of such a road, and the object of the people of Stockton in voting the subsidy, was to secure railroad communication *335from their water front, through their county, up the Valley, in the direction of Visalia. It appears, however, from the findings, that the Stockton and Copperopolis Company was incorporated to construct a railroad from the water front in Stockton to the town of Copperopolis in Calaveras County, and that some work was done towards the grading of its road-bed, from Stockton to Peters, as early as the year 1866, when the work was discontinued, and was not resumed until November, 1870. In the meantime, to wit, in April, 1870, a vote was had in pursuance of the statute, which resulted in favor of the subsidy to the Stockton and Visalia Railroad Company. It appears, therefore, that when the subsidy was voted, work on the Stockton and Copperopolis road had been discontinued for four years or more; but in November, 1870, the work was resumed, and the road was completed to Peters in February, 1871. This portion of that road was subsequently purchased by the Stockton and Visalia Railroad Company, and was adopted as a portion of its line in the direction of Visalia, and was continued by the last-named company through the county of San Joaquin, in the direction of Visalia, as the petitioners contend. Assuming, as we have stated, that this road was so located as to bring it in that respect within the provision of the statute, the question is, whether to entitle it to the subsidy, it was incumbent on the Stockton and Visalia Company to construct a new road over its entire route, or wdiether it could purchase a section of another road constructed by another company after the subsidy was voted, and adopt it as a part of its line. On the theory of the respondents, nothing short of the construction by the company of a new road over the entire route from the water front to the county line, would entitle it to the subsidy. If pushed to its logical conclusion, the result of the argument would be, that if another company, after the subsidy was voted, liad constructed a few miles of railroad, or even a single mile, on the most practicable and advantageous route of the proposed road, the Stockton and Visalia Company ivould not be allowed to acquire it and incorporate it into its road, but must necessarily construct an entirely new road, running, it may be, *336in the immediate vicinity of the other and parallel with it. There can be no possible doubt of the right of the company to purchase the material—the iron, ties, and rolling-stock—■ of the Copperopolis Company from Stockton to Peters, anti to use them in the construction and equipment of the proposed new road. No one will question this right. If it had done so, had torn up the track and used the same material in building another road fifty feet distant, there could be no pretense for saying that this was a violation of either the letter or spirit of the statute granting the subsidy. But why impose this useless labor and expense if the road as it then was, was in the proper location, and was in all respects suitable for the purpose intended? Why require the track to be torn up only to be again replaced? This would have been a superfluous work, not required by either the letter or spirit of the act, and by the purchase of this portion of the road, and incorporating it into the new road, the company has secured to the people of Stockton precisely the same benefits as though they had torn up the track and reconstructed it with the same or other materials. These benefits were to consist of permanent communication by a first-class railroad from the wrater front, up the Valley to the county line, in the direction of Visalia. The twelfth section of the statute defines the duties and obligations of the railroad company, which are, first, that the western terminus of the road shall never be removed from the water front without the consent of the Common Council; second, that fifteen miles of the road, commencing at the water front, shall be built and equipped within eighteen months, in a manner acceptable to the Common Council, and equipped with the'requisite number of the most improved cars and engines; third that the city of Stockton shall have a first lien on the first fifteen miles of the road and its equipment; and if the company shall fail to complete the whole road to the county line and to equip it as a first-class railroad within thirty months next after the passage of the act, all the right and title of the company to the first fifteen miles of the -road and its appurtenances, shall vest in the city of Stockton; fourth, that the rates for freights and passengers over the *337roacl shall not exceed ten cents per ton per mile for freight, and seven cents per mile for each passenger. None of the benefits which were expected to accrue to the city and the people of Stockton, from the construction of the proposed road, nor any of the rights secured to them by the twelfth section of the act, were in any degree lessened or impaired by the fact that instead of constructing a new road for the entire distance, the company purchased and incorporated into its road a small section of another road built by others. When purchased, and the whole road was completed, this section, like all the rest, became subject to all the conditions imposed by the statute. It must have been a first-class road and equipped in the best manner. The western terminus must remain at the water front, and the rates for freight and passage cannot exceed those fixed by the statute. We are therefore of opinion that the company did not forfeit its right to the subsidy, merely by the fact that it purchased instead of building this section of the road.
Second. It is contended that the road does not pursue the route prescribed by the statute, and that for this reason the company is not entitled to the subsidy.
It appears from the findings that the Stockton and Visalia Railroad Company was incorporated, as declared by its articles of association, for the purpose of constructing a railroad “ from the navigable waters in the city of Stockton, in the county of San Joaquin, through said county and the counties' of Stanislaus, Merced, Fresno and Tulare, to a point at or near the town of Visalia, in said county of Tulare.” It further appears that Visalia is distant from Stockton one hundred and sixty miles, in a southeast direction, and that the course of the San Joaquin Valley is from southeast to northwest, while the direction of the town of Peters from Stockton is two points north of east. It also appears that the point at which the railroad crosses the county line between the counties of San Joaquin and Stanislaus is several miles north of an air-line drawn from Stockton to Visalia. As before observed, the only route for the proposed road indicated by the statute, is from the waterfront in Stockton, “through the county of San Joa*338quin, in the direction of the town of Visalia.” In respect to the route, the only requirement is that it shall be through the county, up the Valley and in the direction of Visalia. All else is left to the discretion of the railroad company. It is-not denied that the road runs through the county now, as we understand counsel, that it is located wholly in the Valley. But it is urged that it does not run up the Valley in the direction of Visalia, in the sense of the statute. It does not pursue an air-line toward Visalia, it is true, nor does the statute require it; but its general course is up the Valley, in the “ direction” of Visalia, which is all that is necessary upon any fair interpretation of the statute. In defining the general course of the route, it was not the purpose of the Legislature to prescribe a particular line or any definite point for the eastern terminus. All that was left to the discretion of the company and its engineers, provided only the road was constructed through the county, up the Valley, and in the direction of Visalia. We think all these requirements were fulfilled.
There is nothing in the case of the Virginia & Truckee R. R. Co. v. Commissioners of Lyons Co. (6 Nev. R. 71), cited by counsel, repugnant to these views. In that case the statute emphatically required the road to pass a point not more than twelve hundred feet west of a certain mill. As constructed the road did not pass within twenty-four hundred feet of the mill; and the court very properly held that the condition had not been complied with. But no such question arises here. There the line of the road was definitely limited by the statute to a point not to exceed twelve hundred feet from the mill; while here only the general direction of the route is prescribed.
Another point urged by the respondents is, that under section 13 of the statute the trustees cannot deliver the bonds until they shall first have received from the Common Council a written statement to the effect that the “road has been constructed and the track laid in a manner and of a character acceptable to them, and that the same is properly stocked.” The Common Council refuses to make this statement, and the argument is that they are to exercise their *339judgment on the point whether the road has been properly constructed and stocked; that they must be satisfied on this point before the written statement can be demanded, and it is said the road is not acceptable to them, and therefore they properly refuse to make the written statement, and cannot be compelled by mandamus to perform an act in respect to which they are entitled to exercise their judgment and discretion. On this theory the Common Council might forever defeat the delivery of the bonds, by declining to be satisfied, even though it appeared by the most convincing proofs that the road in every minute particular had been constructed and stocked in the manner and within the time prescribed by the statute. We had a similar question before us in the case of the People v. Supervisors of Alameda (45 Cal. 395). In that case, a petition, signed by the requisite number of qualified electors, had been presented to the Board of Supervisors, requesting that an election be called on the question of removing the county seat. The Board refused to order an election, and an alternative writ of mandate was issued out of this Court. The proceedings for the removal of the county seat were had ufider section 3976 et seq. of the Political Code; and in its answer to the suit the Board set up as one of its defenses that, under the statute, it was its duty to determine whether the petition was signed by the requisite number of qualified electors, and it was not satisfied from the proofs offered in support of the petition that it was so signed; and for that, among other reasons, had declined to order an election. We struck out this portion of the answer, as constituting no defense, and ordered an issue to be tried whether, in point of fact, the petition was signed by the requisite number of qualified electors. Our view of the law then was, and yet is, that if an official duty is to be performed on the happening of an event, the officer cannot arbitrarily or capriciously refuse to perform it, after the event has happened, on the plea that he is not satisfied that it has happened. If the fact exists, and is established by sufficient proofs, it is his legal duty to be satisfied, and to act accordingly. Wo deem it unnecessary to consider the other point discussed by counsel.
*340Judgment and order reversed, and cause remanded, with an order to the court below to issue a peremptory writ of mandate, as prayed for.
Mr. Justice Rhodes dissented.