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

feat: Bound dataset query to location search results #99

Merged
merged 10 commits into from
Jan 23, 2024
Merged

feat: Bound dataset query to location search results #99

merged 10 commits into from
Jan 23, 2024

Conversation

rgbongocan
Copy link
Collaborator

@rgbongocan rgbongocan commented Jan 16, 2024

Todos on separate PR

Description

Addresses #85 - dataset count and coverage layers will be restricted in terms of h3 tiles displayed based on the location search results (if used).

The datasets captured by a location search result will also be displayed by default provided a tile isn't selected.

Screenshots

Screenshot 2024-01-23 at 14 29 51
Screenshot 2024-01-18 at 14 26 40
Uploading Screenshot 2024-01-18 at 14.27.25.png…
Screenshot 2024-01-18 at 14 12 44
Screenshot 2024-01-18 at 14 14 17

@@ -3,6 +3,7 @@ server {
server_name localhost;
root /usr/share/nginx/html;
index index.html;
client_max_body_size 10m;
Copy link
Collaborator Author

@rgbongocan rgbongocan Jan 18, 2024

Choose a reason for hiding this comment

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

By default this is 1m (megabyte) and gets tripped when the geojson from the nominatim search result is included in the request payload to our backend api. We have other options to consider in the future:

  • Determine an appropriate value for polygon_threshold to request a simplified polygon from nominatim. Oversimplification can mean we miss or mistakenly capture some h3 tiles
  • Pass the place id instead of the geojson to the api backend - and let it re-call the nominatim endpoint. Given we request in batches corresponding to osm tiles, one concern is that this will fire too many of the same requests (and abuse) to the nominatim api

@rgbongocan rgbongocan changed the title [wip] feat: Bound dataset query to location search results feat: Bound dataset query to location search results Jan 23, 2024
@rgbongocan rgbongocan merged commit b6af613 into worldbank:main Jan 23, 2024
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