mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 00:30:31 +00:00
ZVV: Replace some line numbers by the line name.
This commit is contained in:
parent
679915bed3
commit
28dd2c8033
3 changed files with 43 additions and 3 deletions
|
@ -846,7 +846,7 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
|||
for (int iProd = 0; iProd < prodListLen; iProd++) {
|
||||
final JSONObject prod = prodList.getJSONObject(iProd);
|
||||
final String name = Strings.emptyToNull(prod.getString("name"));
|
||||
final String number = prod.optString("number");
|
||||
final String number = prod.optString("number", null);
|
||||
final int oprIndex = prod.optInt("oprX", -1);
|
||||
final String operator = oprIndex != -1 ? operators.get(oprIndex) : null;
|
||||
final int cls = prod.optInt("cls", -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue