ZVV: Replace some line numbers by the line name.

This commit is contained in:
Andreas Schildbach 2018-11-17 10:33:22 +01:00
parent 679915bed3
commit 28dd2c8033
3 changed files with 43 additions and 3 deletions

View file

@ -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);