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

"Accept-language" keyword #470

Open
mdbaron42 opened this issue Jan 2, 2024 · 0 comments
Open

"Accept-language" keyword #470

mdbaron42 opened this issue Jan 2, 2024 · 0 comments

Comments

@mdbaron42
Copy link

Thank you for the geocoder library. It is a great idea, and is working well for me, although I have only really used it on OSM, as essentially all the others require API keys now.
Would it be possible to add the "Accept-language" keyword parameter to the OSM geocoder, please? I have tried setting it directly in the code, and it works, and greatly helped checking the returned results, as I was able to get the address in latin script by adding the line:

'accept-language': "en,de,*",

to the parameters passed in the function _build_params in the classes OsmQuery and OsmQueryDetail

Clearly, for general utility, it would be best if this was settable by the user on an ad hoc basis, rather than hard-coded.

Thanks again,
Michael

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

No branches or pull requests

1 participant