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

README.md - mention accept-language header #812

Merged
merged 1 commit into from
Jun 7, 2024
Merged

Conversation

mtmail
Copy link
Contributor

@mtmail mtmail commented Jun 4, 2024

README.md Outdated
Comment on lines 262 to 264
If omitted the ['accept-language' HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language)
will be used (browsers set this by default). If neither is set the local name of the place is returned. (In OpenStreetMap
data that's usually the value of the `name` tag).

```
http://localhost:2322/api?q=berlin&lang=it
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would swap the two parts:

  1. You can use the lang parameter like:
http://localhost:2322/api?q=berlin&lang=it
  1. If the lang parameter is omitted the ...

@lonvia lonvia merged commit a57b831 into komoot:master Jun 7, 2024
4 checks passed
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.

3 participants