diff --git a/app/geoapify_api_types.ts b/app/geoapify_api_types.ts index 6c958d80cbafed2ec0b4c40cc346a7545a6a97eb..27a71c14c6de82260e0d59286d05595d535f18e3 100644 --- a/app/geoapify_api_types.ts +++ b/app/geoapify_api_types.ts @@ -2,6 +2,8 @@ export type GeoapifyPlace = { place_id: string; formatted: string; city?: string; + state?: string; + country: string; lon: number; lat: number; }; diff --git a/app/geoapify_test.ts b/app/geoapify_test.ts index 4cf7f66f1f7241064695f74391bda94da6ca2694..b063f540d2bc770e34040e0050dac96cd5d0f9a1 100644 --- a/app/geoapify_test.ts +++ b/app/geoapify_test.ts @@ -37,6 +37,8 @@ const placeFragment = ` id name city + state + country coordinates { latitude longitude diff --git a/app/geoapify_test_data.ts b/app/geoapify_test_data.ts index 490f44f9a445d92bbf80a7675bc6b59065ae9cff..04ed3dafebe2e429443763607edc48a20ac60445 100644 --- a/app/geoapify_test_data.ts +++ b/app/geoapify_test_data.ts @@ -94,6 +94,8 @@ export const expectedPlacesAutocompleteGqlResponse = [ id: "51ac66e77e9826274059f9426dc08c114840f00101f901dcf3000000000000c00208", name: "Munich, Bavaria, Germany", city: "Munich", + state: "Bavaria", + country: "Germany", coordinates: { latitude: 48.1371079, longitude: 11.5753822, @@ -103,6 +105,8 @@ export const expectedPlacesAutocompleteGqlResponse = [ id: "51b1a888d349b558c059b0aa5e7ea7554840f00101f90194c5020000000000c00208", name: "Munich, ND, United States of America", city: "Munich", + state: "North Dakota", + country: "United States", coordinates: { latitude: 48.669174, longitude: -98.832631,