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

Add user_agent parameter when instantiating classes (and fix examples) #85

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dpward
Copy link

@dpward dpward commented Mar 20, 2023

The Nominatim Usage Policy requires the application to be identified in HTTP requests. In this context, TkinterMapView is not the application; it is a library. Calling applications need to pass a User-Agent string. (Notice the corresponding documentation for geopy.)

This adds a unique User-Agent to each example. (Additionally, fix the window title in several examples, and make the import statements consistent.)

The Nominatim Usage Policy requires the application to be identified in
HTTP requests. In this context, TkinterMapView is not the application;
it is a library. Calling applications need to pass a User-Agent string.
@newcomb-luke
Copy link

In the case of my team, this has now become a problem because some user of this library has spammed the search API and it seems to have temporarily banned the user agent. I'd like to see this in a future release of the library.

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.

None yet

2 participants