Skip to content

Commit

Permalink
geocoding: hide county and boundary results
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Aug 2, 2023
1 parent b4ac01d commit 2aab5cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ export class ApiImpl implements Api {
const langAndCountry = getTranslation().getLang().split('_')
url.searchParams.append('locale', langAndCountry.length > 0 ? langAndCountry[0] : 'en')

// routing makes not much sense between areas and it is unclear if the center is on a road
url.searchParams.append('osm_tag', '!place:county')
url.searchParams.append('osm_tag', '!boundary')
url.searchParams.append('osm_tag', '!historic')

const response = await fetch(url.toString(), {
headers: { Accept: 'application/json' },
})
Expand Down

0 comments on commit 2aab5cb

Please sign in to comment.