Fix noctilien line research

This commit is contained in:
nemunaire 2023-01-16 02:12:54 +01:00
parent ea52c6132f
commit 27b5cb5d11

View File

@ -118,7 +118,7 @@ func convertCode(t, code string) string {
func searchLine(t, code string) string { func searchLine(t, code string) string {
for _, line := range IDFMLines { for _, line := range IDFMLines {
if line.Fields.ShortName == code && (line.Fields.TransportMode == t || line.Fields.NetworkName == t) { if line.Fields.ShortName == code && (line.Fields.TransportMode == t || strings.ToLower(line.Fields.NetworkName) == t) {
return line.Fields.IdLine return line.Fields.IdLine
} }
} }