aboutsummaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorFridon <[email protected]>2022-06-24 13:10:11 +0400
committerFridon <[email protected]>2022-06-24 13:10:11 +0400
commit8622f3f37988333251265144c2fd8efb75a04d34 (patch)
tree66df4474ddd74be0ec0e0333d05eb671978c508d /src/models
parent001a25e6761f832dfc6241b7d97f54210ab39381 (diff)
downloadcountryfetch-8622f3f37988333251265144c2fd8efb75a04d34.tar.xz
countryfetch-8622f3f37988333251265144c2fd8efb75a04d34.zip
add lat/lng, subregion and timezones
Diffstat (limited to 'src/models')
-rw-r--r--src/models/FetchedCountry.model.ts4
-rw-r--r--src/models/country.model.ts6
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[];
+ };
}