Fix noctilien line research
This commit is contained in:
parent
ea52c6132f
commit
27b5cb5d11
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue