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

Support public Nominatim for demos; LA and Chicago region defs #294

Merged
merged 8 commits into from
Jan 25, 2024
Merged

Conversation

graue
Copy link
Contributor

@graue graue commented Jan 18, 2024

I used this branch locally to help me get around Chicago and Los Angeles while visiting them. I'd like to figure out how we can merge it.

One of the features is a hack to use the public Nominatim API for geocoding, to avoid the difficulty and heavy resource usage of standing up local Photon. This is only suitable for local development and local demos, as the usage policy limits requests to an absolute maximum of 1 per second across all users. To be a respectful user of the API, this branch throttles lookups to one per 3 seconds and disables autocomplete. I also find I have to include the city name e.g. "Lincoln Park Zoo, Chicago" or "Echoplex, Los Angeles" to get usable results.

I'm aware this PR is somewhat at odds with #293 but I think it's useful to be able to do it this way too, less to set up. Or we could potentially iterate after merging this and remove the geoconfiguration part once we have a clean way to use Docker to run all the relevant services, while keeping the public Nominatim capability.

graue added 8 commits January 4, 2024 00:12
also update Chicago values for rebase
behind a flag, for demo/dev ONLY

this is useful for testing in a new region without spinning up photon
for that region

needs work, it currently is not limited to the supported region
because adding bounded=1 is making results *in* that region disappear.
it is not finding some Chicago locations I'm trying -- at all, not
just not as the first result -- unless I explicitly add ", Chicago"
@graue graue requested a review from Andykmcc January 18, 2024 00:08
@graue graue merged commit 446219c into main Jan 25, 2024
3 checks passed
@graue graue deleted the graue/la branch January 25, 2024 03:41
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