Skip to content

Commit

Permalink
minor tweak to location bias parameters, #390
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed May 28, 2024
1 parent ad23579 commit 106f172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sidebar/search/AddressInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ class Geocoder {

await this.timeout.wait()
try {
const options: Record<string, string> = bias ? { point: coordinateToText(bias), location_bias_scale: "0.6" } : {}
const options: Record<string, string> = bias ? { point: coordinateToText(bias), location_bias_scale: "0.5", zoom: "9" } : {}
const result = await this.api.geocode(query, provider, options)
const hits = Geocoder.filterDuplicates(result.hits)
if (currentId === this.requestId) this.onSuccess(query, provider, hits)
Expand Down

0 comments on commit 106f172

Please sign in to comment.