Skip to content

Commit

Permalink
add nancy city
Browse files Browse the repository at this point in the history
  • Loading branch information
Javarome committed Feb 29, 2024
1 parent 8b589da commit 9f88899
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
4 changes: 3 additions & 1 deletion org/eu/fr/region/ges/54/MeurtheEtMoselleCities.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { City } from "../../../../../country/region/department/city/City"
import { cosnesEtRomain } from "./cosnesetromain/CosnesEtRomain"
import { nancy } from "./nancy/Nancy"

export const meurtheEtMoselleCities: City[] = [
cosnesEtRomain
cosnesEtRomain,
nancy
]
1 change: 1 addition & 0 deletions org/eu/fr/region/ges/54/MeurtheEtMoselleCityCode.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export enum MeurtheEtMoselleCityCode {
CosnesEtRomain = 54138,
Nancy = 54395
}
4 changes: 3 additions & 1 deletion org/eu/fr/region/ges/54/MeurtheEtMoselleMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import { DepartmentMessages } from "../../../../../country/region/department/Dep
import { CityMessages } from "../../../../../country/region/department/city/CityMessages"
import { MeurtheEtMoselleCityCode } from "./MeurtheEtMoselleCityCode"
import { cosnesEtRomainMessages } from "./cosnesetromain/CosnesEtRomainMessages"
import { nancyMessages } from "./nancy/NancyMessages"

export type MeurtheEtMoselleCityList<T> = {
[key in MeurtheEtMoselleCityCode]: T
}

export const meurtheEtMoselleCityMessages: MeurtheEtMoselleCityList<CityMessages> = {
[MeurtheEtMoselleCityCode.CosnesEtRomain]: cosnesEtRomainMessages
[MeurtheEtMoselleCityCode.CosnesEtRomain]: cosnesEtRomainMessages,
[MeurtheEtMoselleCityCode.Nancy]: nancyMessages
}

export const meurtheEtMoselleMessages = new DepartmentMessages<MeurtheEtMoselleCityList<CityMessages>>(
Expand Down
5 changes: 5 additions & 0 deletions org/eu/fr/region/ges/54/nancy/Nancy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { franceCity } from "../../../../FranceCity"
import { Place } from "../../../../../../../place/Place"
import { MeurtheEtMoselleCityCode } from "../MeurtheEtMoselleCityCode"

export const nancy = franceCity(MeurtheEtMoselleCityCode.Nancy, Place.fromDMS("48°41′37″N,6°11′05″E"))
3 changes: 3 additions & 0 deletions org/eu/fr/region/ges/54/nancy/NancyMessages.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { CityMessages } from "../../../../../../country/region/department/city/CityMessages"

export let nancyMessages = new CityMessages("Nancy")

0 comments on commit 9f88899

Please sign in to comment.