On August 14, 1975 the Trustees of the Village of Maywood (Maywood) adopted an ordinance which required all department heads and administrative personnel to establish residency within Maywood no later than two years after the date of its passage. All other employees and officers were required by the same ordinance to establish Maywood residency within four years. Plaintiffs, 1 who consist of policemen, firemen, and other municipal employees challenged the validity of the residency ordinance by instituting this action in the district court under 42 U.S.C. § 1983 and various provisions of the Constitution. Plaintiffs are currently employed by May-wood, and reside outside the corporate limits of Maywood.
Maywood responded to the complaint by filing a motion to dismiss. The district court, Judge Leighton, granted the motion to dismiss, indicating that his reasons for doing so were adequately expressed by Judge Decker of the same court in an unreported memorandum opinion dismissing an unrelated action involving a similar residency requirement. 2 In seeking reversal plaintiffs contend that the challenged ordinance operates retrospectively to deprive them of pre-existing vested rights in violation of the due process clause of the Fourteenth Amendment, impairs an obligation of contract in violation of Article I, § 10 of the Constitution, and should be scrutinized for equal protection purposes against a compelling state interest standard. For the rea *50 sons stated below, we reject these contentions and affirm the judgment of the district court.
We note at the outset that residency restrictions imposed upon municipal employees as a continuing condition of their public employment have been upheld by numerous courts. Such residency restrictions have been held to be rationally related to legitimate governmental purposes.
E. g. McCarthy v. Philadelphia’s Civil Service Commission,
I.
In this case plaintiffs urge us to scrutinize strictly the challenged ordinance because, plaintiffs contend, that ordinance acts retrospectively in violation of due process arbitrarily to deprive them of a pre-ex-isting vested contractual right to live where they choose. In this regard plaintiffs argue that for many years Maywood consented to and allowed them to reside outside the corporate limits of Maywood. Further, plaintiffs point to Section 1(B)(2) of the May-wood personnel code which was adopted in 1971 with the passage of an ordinance, and which provides:
In hiring new employees, preference will be given Maywood residents — all other factors being equil (sic). If qualified Village residents do not apply, then nonresidents may be employed in any position.
Plaintiffs then assert that this ordinance was adopted in accordance with Ill.Rev. Stat., ch. 24, § 3-14-1 (1975) which provides in relevant part:
No person shall be eligible to any municipal office unless he is a qualified elector of the municipality and has resided therein at least one year next preceding his election or appointment. .
. [Municipalities having a population of not more than 500,000 are hereby authorized and empowered to adopt ordinances which allow firemen and policemen to reside outside the corporate limits of the municipality by which they are employed both at the time of appointment and while serving as such firemen and policemen.
It is plaintiffs’ principal argument that the 1971 adoption of Section 1(B)(2) of the personnel code, together with the past actions of Maywood in allowing its employees to reside elsewhere, created in plaintiffs a vested contractual right to live outside Maywood. The adoption of the 1975 residency requirement ordinance acted to repeal Section I(B)(2)’s “express approval and authorization” to reside outside Maywood and, their argument concludes, resulted in an unconstitutional exercise of the municipality’s police power. We do not agree.
Section 1(B)(2) does not grant an express approval or authorization to May-wood employees to live outside Maywood. Whatever that ordinance established with
*51
respect to hiring preferences, we conclude that it did not serve to create the vested contractual right claimed by appellants here. Nothing in the language of Section 1(B)(2) indicates the creation of an absolute unconditional right in plaintiffs to live outside Maywood. Even if Section 1(B)(2) did create some interest in the plaintiffs, that interest would have been contingent upon the anticipated continuance of the ordinance. Such an interest does not amount to a vested right.
3
Cf.
Smith v. Hill,
Further, we do not agree with plaintiffs’ contention that the challenged residency ordinance is retrospective in nature. We have already concluded that § 1(B)(2) and Maywood’s past actions with respect to employee residency did not create in plaintiffs an antecedent vested right to reside where they choose, and that any interest to reside outside Maywood was subject to the reasonable exercise of Maywood’s police powers. We note in addition that the residency ordinance requires present Maywood employees to establish residency within the Village by specified future dates. The ordinance does not penalize those employees living outside Maywood for having so resided in the past. Under the terms of the ordinance, an employee will be charged with a violation of the residency ordinance not because the employee resided outside Maywood in the past, but rather, an employee will be charged with a violation for failure to establish a Maywood residency within the two or four year period allowed to them to establish such a residency. As such, the challenged ordinance can not be said to penalize activity which was otherwise lawful in the past, and, hence, cannot be considered retrospective in application.
II.
Plaintiffs also contend that the challenged ordinance served to repeal § 1(B)(2), which, together with Maywood’s prior acquiescence and consent, had created a contractual obligation on the part of Maywood to allow the plaintiffs to reside outside the Village. The adoption of the residency ordinance, plaintiffs contend, impaired this obligation of contract in violation of Article I, § 10 of the Constitution. The asserted obligation on Maywood’s part gives rise to the vested rights claimed by plaintiffs to reside in the place of their choice. For the reasons already given we find no vested contractual right in plaintiffs, and no obligation on Maywood’s part giving rise to the claimed right. Without such obligation, there can be no impairment.
Keefe v. Clark,
Plaintiffs argue that this case is to be determined by
United States Trust Company
v.
New Jersey,
III.
Plaintiffs alternatively contend that if they do not have antecedent vested contract rights to reside outside Maywood, the challenged ordinance nevertheless requires the application of the strict scrutiny test under the equal protection clause. That test, which requires that legislation be upheld only if it is necessary to serve a compelling state interest, is to be employed to determine the constitutionality of a legislative classification when that classification impermissibly interferes with the exercise of a fundamental right or operates to the peculiar disadvantage of a suspect class.
Massachusetts Board of Retirement v. Murgia,
Although it is difficult to see how the travel such as was involved in
Shapiro, Dunn
and
Memorial
Hospital
4
is similar to the right to travel claimed in this case, we observe that any classification created by the challenged ordinance simply is not a classification on the basis of a durational residency requirement. Bona fide residency requirements as continuing conditions of municipal employment rest upon footings significantly different from those of dura-tional residency requirements. Indeed,
Shapiro, Dunn,
and
Memorial Hospital
were careful to maintain the differences between the two. The fact of residency itself was noted to be distinct from durational (or “waiting period”) residency in
Shapiro,
394
*53
U.S. at 636,
Recently, such a residency requirement was found in
McCarthy v. Philadelphia Civil Service Commission, supra,
Plaintiffs argue that McCarthy is distinguishable from the present case in that McCarthy involved a residency requirement existing at the time of an employee’s application, whereas here the requirement is imposed after employment has commenced. Plaintiffs, however, do not indicate how their rights to interstate travel are affected by this distinguishing fact. Furthermore, the claimed right in McCarthy was municipal employment while residing elsewhere. The converse of the claim presented in McCarthy is asserted here: the right to reside elsewhere while being employed by the municipality. To the extent that McCarthy indicates that bona fide residency requirements as continuing conditions of municipal employment do not violate an employee’s right to interstate travel, it is dispositive of plaintiffs’ contention here. Since appropriately defined and uniformly applied bona fide residence requirements do not impermissibly violate the right to interstate travel, the distinction between such requirements imposed as an initial condition of municipal employment and such requirements imposed as a continuing condition of such employment becomes a distinction without a difference.
Plaintiffs also claim that the challenged ordinance impermissibly infringes their fundamental right to travel intrastate. The claimed right of intrastate travel has been rejected by several courts.
Wright v. City of Jackson, Mississippi, supra; Abrahams v. Civil Service Commission, supra; Ector
v.
City of Torrance, supra.
Those cases recognizing a fundamental right of intrastate travel have done so vis-a-vis durational residency requirements.
Wellford
v.
Battaglia,
Accordingly, the judgment of the district court is affirmed.
AFFIRMED.
Notes
. The complaint alleged that the 42 named plaintiffs brought this action in their own behalf and as a class action on behalf of all similarly situated employees of Maywood. The district court did not certify any class under Rule 23(c), Federal Rules of Civil Procedure.
.
Cook County College Teachers Union, Local 1600 v. Taylor,
. Plaintiffs also argue that the incorporation of § 1(B)(2) into their contracts of employment and the action of Maywood for many years in consenting to and acquiescing in employees’ residency outside Maywood create a situation in which Maywood should be estopped from denying the existence of their claimed vested rights. We have serious doubts that a municipality can be estopped with respect to its governmental function through the exercise of its police power. Cf.
Hall
v.
Cook County,
359 111. 528,
. Those cases dealt with travel in the sense of migration.
Shapiro, supra,
