Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Bing geocoder results. #3086

Merged
merged 1 commit into from
Jun 25, 2020
Merged

Improve Bing geocoder results. #3086

merged 1 commit into from
Jun 25, 2020

Conversation

dracos
Copy link
Member

@dracos dracos commented Jun 23, 2020

Add a couple of parameters to hopefully improve results, and make sure the returned locality is included in the summary address.

Sometimes (I think with results with less information?), Bing is including no information beyond the country in the result string. Make sure the locality is included if not already present. Also ignore our server IP, and ask for 10 results (default was changed to 5 at some point).

Helps with this example query, at least, and I don't think it could harm any other.

Before:
image

After:
image

@dracos dracos requested a review from zarino June 23, 2020 13:36
Copy link
Member

@zarino zarino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦖

@codecov
Copy link

codecov bot commented Jun 23, 2020

Codecov Report

Merging #3086 into master will increase coverage by 0.12%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3086      +/-   ##
==========================================
+ Coverage   83.22%   83.34%   +0.12%     
==========================================
  Files         246      246              
  Lines       15496    15502       +6     
  Branches     2894     2896       +2     
==========================================
+ Hits        12896    12920      +24     
+ Misses       1680     1656      -24     
- Partials      920      926       +6     
Impacted Files Coverage Δ
perllib/FixMyStreet/Geocode/Bing.pm 66.66% <85.71%> (+45.23%) ⬆️
perllib/FixMyStreet/Cobrand/Default.pm 87.22% <0.00%> (+0.31%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b462f2...d1c38a2. Read the comment docs.

@dracos dracos force-pushed the bing-locality branch 2 times, most recently from 5c0e120 to 2842dc2 Compare June 24, 2020 16:19
Add a couple of parameters to hopefully improve results, and make
sure the returned locality is included in the summary address.
@dracos dracos merged commit d1c38a2 into master Jun 25, 2020
@github-pages github-pages bot temporarily deployed to github-pages June 25, 2020 12:53 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants