Skip to content

Conversation

@janepie
Copy link
Member

@janepie janepie commented Apr 3, 2025

image

API key has to be set in admin settings, AI section

@janepie janepie requested review from julien-nc and marcelklehr April 3, 2025 13:30
: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
Copy link
Member

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))
Copy link
Member

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?

Copy link
Member Author

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?

Copy link
Member

@marcelklehr marcelklehr left a 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 🤷

janepie added 2 commits April 7, 2025 09:40
@janepie janepie force-pushed the feat/public-transport-routing branch from a16c12d to ee07051 Compare April 7, 2025 07:40
@janepie janepie requested a review from marcelklehr April 7, 2025 07:41
@marcelklehr
Copy link
Member

woop woop

@janepie janepie merged commit 9128102 into main Apr 7, 2025
2 checks passed
@janepie janepie deleted the feat/public-transport-routing branch April 7, 2025 11:31
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