diff options
| author | Fridon <[email protected]> | 2022-06-24 13:10:11 +0400 |
|---|---|---|
| committer | Fridon <[email protected]> | 2022-06-24 13:10:11 +0400 |
| commit | 8622f3f37988333251265144c2fd8efb75a04d34 (patch) | |
| tree | 66df4474ddd74be0ec0e0333d05eb671978c508d /src/models | |
| parent | 001a25e6761f832dfc6241b7d97f54210ab39381 (diff) | |
| download | countryfetch-8622f3f37988333251265144c2fd8efb75a04d34.tar.xz countryfetch-8622f3f37988333251265144c2fd8efb75a04d34.zip | |
add lat/lng, subregion and timezones
Diffstat (limited to 'src/models')
| -rw-r--r-- | src/models/FetchedCountry.model.ts | 4 | ||||
| -rw-r--r-- | src/models/country.model.ts | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/models/FetchedCountry.model.ts b/src/models/FetchedCountry.model.ts index 0dd783d..af80281 100644 --- a/src/models/FetchedCountry.model.ts +++ b/src/models/FetchedCountry.model.ts @@ -1,9 +1,13 @@ export interface FetchedCountry { country: string; + latlng: string; flag: string; languages: string; capital: string; + capitalLatLng: string; region: string; + subregion: string; population: string; currencies: string; + timezones: string; } diff --git a/src/models/country.model.ts b/src/models/country.model.ts index 1a6b3ae..7866187 100644 --- a/src/models/country.model.ts +++ b/src/models/country.model.ts @@ -28,4 +28,10 @@ export interface Country { population: number; languages: Languages; region: Region; + subregion: string; //can later be explicit enum + timezones: string[]; + latlng: number[]; + capitalInfo: { + latlng: number[]; + }; } |
