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

Operators filter name regexp #1221

Open
fattazzo opened this issue Feb 9, 2018 · 1 comment
Open

Operators filter name regexp #1221

fattazzo opened this issue Feb 9, 2018 · 1 comment
Assignees

Comments

@fattazzo
Copy link

fattazzo commented Feb 9, 2018

At this time the filter on the operator name only works if the exact value is entered. Example:
Operator: Trentino Trasporti Esercizio
Works with: https://transit.land/api/v1/operators?name=Trentino%20Trasporti%20Esercizio

Many times the user does not remember the exact name of the operator so it would be useful to search for it using a "like" or "contains" expression. Example:

https://transit.land/api/v1/operators?name=Trentino%20Trasporti

It sounds like "find all the operators that contains Trentino Trasporti". The best thing then is that the search in the name is not case sensitive

@irees irees self-assigned this May 22, 2018
@irees
Copy link
Member

irees commented May 22, 2018

@fattazzo

Hi. Yes, you are correct that it is currently an exact match. I will see if we can change it to a "like" query, or add another query parameter to provide this option.

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

2 participants