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

logic for selecting a 'preferred' parent from multiple options at the same placetype #250

Open
missinglink opened this issue Feb 7, 2019 · 0 comments

Comments

@missinglink
Copy link
Member

In the case of [175.040816, -41.136851 ] we are assigning 85773067 for neighbourhood when 85772991 also matches and is the correct neighbourhood.

What is the current logic for selecting which of these two parents to return? Is it arbitrary or is there some reason one is selected and not the other?

In this specific case, the address is very close to the border of 85773067 and more centrally located within 85772991.
Would it make more sense, in this case, to measure the relative distances from the input point to the nearest border and then use the one which is farther away from the boundary?

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

No branches or pull requests

1 participant