Skip to content

Conversation

@lonvia
Copy link
Member

@lonvia lonvia commented Dec 5, 2025

This saves an SQL query in two cases:

  • When the reverse lookup points ends up being inside a building, don't do the interpolation lookup. We can't get a more precise address.
  • When reverse lands on a street but an address was requested, a second lookup tries to find a closeby address for more precise localisation. However, the first SQL for finding the street already had looked up all the closeby location. So instead of sending a second SQL query, return all nearby places in the first query and do the address search from that.

@lonvia lonvia merged commit 4cfc179 into osm-search:master Dec 7, 2025
8 checks passed
@lonvia lonvia deleted the improve-reverse-performance branch December 7, 2025 08:39
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.

1 participant