mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49: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++) {
|
||||
final JSONObject rem = remList.getJSONObject(i);
|
||||
final String code = rem.getString("code");
|
||||
final String txt = rem.getString("txtN");
|
||||
remarks.add(new String[] { code, txt });
|
||||
final String txtS = rem.optString("txtS", null);
|
||||
final String txtN = rem.optString("txtN", null);
|
||||
remarks.add(new String[] { code, txtS != null ? txtS : txtN });
|
||||
}
|
||||
|
||||
return remarks;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue