mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-10 11:08:48 +00:00
AbstractHafasMobileProvider: If parsed location is a 'mast', use 'main mast' (station) instead.
This commit is contained in:
parent
77f2255999
commit
d42edbadf9
1 changed files with 3 additions and 0 deletions
|
@ -693,6 +693,9 @@ public abstract class AbstractHafasMobileProvider extends AbstractHafasProvider
|
|||
final String[] placeAndName;
|
||||
final Set<Product> products;
|
||||
if ("S".equals(type)) {
|
||||
final int mMastLocX = loc.optInt("mMastLocX", -1);
|
||||
if (mMastLocX != -1 && mMastLocX != locListIndex)
|
||||
return parseLoc(locList, mMastLocX);
|
||||
locationType = LocationType.STATION;
|
||||
id = normalizeStationId(loc.getString("extId"));
|
||||
placeAndName = splitStationName(loc.getString("name"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue