mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 17:29:51 +00:00
Introduce AbstractNetworkProvider.parsePosition() for custom parsable positions.
This commit is contained in:
parent
e386dac23e
commit
3c5dc7c328
9 changed files with 122 additions and 46 deletions
|
@ -250,8 +250,7 @@ public class InvgProvider extends AbstractHafasProvider
|
|||
destination = new Location(LocationType.ANY, null, null, destinationName);
|
||||
}
|
||||
|
||||
final Position position = mDepFine.group(7) != null ? new Position("Gl. " + ParserUtils.resolveEntities(mDepFine.group(7)))
|
||||
: null;
|
||||
final Position position = parsePosition(ParserUtils.resolveEntities(mDepFine.group(7)));
|
||||
|
||||
final Departure dep = new Departure(plannedTime.getTime(), predictedTime != null ? predictedTime.getTime() : null, line,
|
||||
position, destination, null, null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue