Skip to content

[BUG]: autosuggestions don't appear unless exact text #30

@Necrom4

Description

@Necrom4

SBB-TUI has a feature that allows a user to start writing a station name in one of the input fields and then get a suggestion, such as Gen suggests ève in Ghost Text ("Genève").
Unfortunately appart from case insensitivity, it doesn't currently have much flexibility.

  • If a user writes Zur it won't suggest ich ("Zürich") because it expected the user to write Zür.
  • If a user writes Lausanne Fl it won't suggest on ("Lausanne Flon") because it expected the user to write Lausanne, Fl.

Fortunately, the API works really well with that, querying zurich or lausanne%20flon or lausanne,flon or even lausanneflon works, so this really should just be a question of "how" we're putting the string in the query, or how it's sending it.

This should be an easy PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions