Fix transfer buffer enforcement and accent-insensitive search - #7
Merged
IgnacioLD merged 1 commit intoJul 31, 2026
Conversation
Transfer wait times now reflect the real schedule gap instead of FGV's min_espera platform-walk estimate. When the gap is shorter than the user's buffer, the repository re-plans the sub-journey from the transfer station to find the real next train after arrival + buffer, rather than padding times with fabricated values. Also adds accent-insensitive search to the planner station picker (typing "turia" matches "Túria"), extracting the normalization logic into a shared stripDiacritics utility. Signed-off-by: IgnacioLD <nadeloyeda@gmail.com>
IgnacioLD
deleted the
2-fix-that-waiting-buffer-is-suspiciously-too-good-to-be-true
branch
July 31, 2026 11:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Transfer buffer fix
Transfer wait times were always showing FGV's
min_espera(platform-walk estimate), which happens to equal the real schedule gap. The old code padded tight transfers with fabricated departure/arrival times.Now:
hora_llegada/hora_salidatimes viatimeDiffMinutesenforceTransferBufferre-callsplanificador-online2from the transfer station to the destination withhora_salida = arrival + buffer, finding the real next train (not a padded time)Accent-insensitive search
The planner station picker required exact accent matching ("turia" wouldn't find "Túria"). Extracted the normalization logic from
SearchViewModelinto a sharedstripDiacritics()utility in core, now used by both search and planner.Test plan
timeDiffMinutes,addMinutesToTime, planificador journey with real waits)