mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 00:39:58 +00:00
AbstractHafasClientInterfaceProvider: Handle missing 'txtN' in 'remL' entry and try 'txtS' first.
This commit is contained in:
parent
d2019aef57
commit
5056548975
1 changed files with 3 additions and 2 deletions
|
@ -778,8 +778,9 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
||||||
for (int i = 0; i < remList.length(); i++) {
|
for (int i = 0; i < remList.length(); i++) {
|
||||||
final JSONObject rem = remList.getJSONObject(i);
|
final JSONObject rem = remList.getJSONObject(i);
|
||||||
final String code = rem.getString("code");
|
final String code = rem.getString("code");
|
||||||
final String txt = rem.getString("txtN");
|
final String txtS = rem.optString("txtS", null);
|
||||||
remarks.add(new String[] { code, txt });
|
final String txtN = rem.optString("txtN", null);
|
||||||
|
remarks.add(new String[] { code, txtS != null ? txtS : txtN });
|
||||||
}
|
}
|
||||||
|
|
||||||
return remarks;
|
return remarks;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue