-
Notifications
You must be signed in to change notification settings - Fork 3
Feat: public transport routing #15
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
Conversation
ex_app/lib/all_tools/external.py
Outdated
| :param origin_lon: Longitude of the starting point | ||
| :param destination_lat: Latitude of the destination | ||
| :param destination_lon: Longitude of the destination | ||
| :param alternatives: the number of routes returned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alternatives vs routes?
|
|
||
| LOCALE_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), "locale") | ||
| current_translator = ContextVar("current_translator") | ||
| current_translator.set(translation(os.getenv("APP_ID"), LOCALE_DIR, languages=["en"], fallback=True)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to setup translations for this repo as well, then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh right, no translations yet, I oversaw that. I'd say yes, settings should be translated?
marcelklehr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Settings work, tool works, the API itself yields weird routes as responses for me, but 🤷
Signed-off-by: Jana Peper <[email protected]>
Signed-off-by: Jana Peper <[email protected]>
a16c12d to
ee07051
Compare
|
woop woop |
API key has to be set in admin settings, AI section