Skip to content

Conversation

@Tiny-Paws
Copy link

Nominatim usage policy requires to use a rate limiter, cache and display attribution

This PR implements the above requirements.

Added 24 hours cache on Nominatim requests
Added rate limiting on Nominatim requests
Added OpenStreetMap attribution on leaflet map
@Tiny-Paws Tiny-Paws requested a review from boojack as a code owner September 23, 2025 17:22
@boojack boojack requested a review from Copilot September 24, 2025 14:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements OpenStreetMap (OSM) Nominatim usage policy compliance by adding rate limiting, caching, and attribution requirements for geocoding requests.

  • Adds rate limiting with 1.3-second intervals between Nominatim API calls
  • Implements caching headers for API requests to reduce server load
  • Adds required OSM attribution to map components

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
LocationSelector.tsx Implements rate limiting and caching for Nominatim reverse geocoding requests
LeafletMap.tsx Adds OpenStreetMap attribution to comply with usage policies

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Tiny-Paws
Copy link
Author

My linter didn't work properly due to git's core.autocrlf feature being enabled. Should pass static checks now

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