Skip to content

Commit 45cbd55

Browse files
committed
Expand scope of location search to include all US territories.
1 parent 147d94e commit 45cbd55

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

site/src/composables/useGeocoder.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ async function search(query) {
1919
const params = new URLSearchParams({
2020
api_key: import.meta.env.VITE_STADIA_API_KEY,
2121
text: query,
22-
'boundary.country': 'US',
22+
// Match the dataset's geographic scope: 50 states + DC + the
23+
// 5 inhabited US territories (PR, VI, GU, MP, AS).
24+
'boundary.country': 'US,PR,VI,GU,MP,AS',
2325
size: '5',
2426
})
2527
const resp = await fetch(`${STADIA_GEOCODING_URL}?${params}`)

0 commit comments

Comments
 (0)