Fix noctilien line research
This commit is contained in:
parent
ea52c6132f
commit
27b5cb5d11
@ -118,7 +118,7 @@ func convertCode(t, code string) string {
|
||||
|
||||
func searchLine(t, code string) string {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user