mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 17:58:49 +00:00
split place and name for Berlin destinations
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@935 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
7fdd00a5ae
commit
b3850c89d6
1 changed files with 5 additions and 5 deletions
|
@ -332,8 +332,8 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
|
||||
final String position = null;
|
||||
|
||||
final String destinationName = ParserUtils.resolveEntities(mDepFine.group(4));
|
||||
final Location destination = new Location(LocationType.ANY, 0, null, destinationName);
|
||||
final String[] destinationPlaceAndName = splitPlaceAndName(ParserUtils.resolveEntities(mDepFine.group(4)));
|
||||
final Location destination = new Location(LocationType.ANY, 0, destinationPlaceAndName[0], destinationPlaceAndName[1]);
|
||||
|
||||
final String message = messages.get(line.label);
|
||||
|
||||
|
@ -403,9 +403,9 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
final String position = ParserUtils.resolveEntities(mDepFine.group(3));
|
||||
|
||||
final int destinationId = Integer.parseInt(mDepFine.group(4));
|
||||
final String destinationName = ParserUtils.resolveEntities(mDepFine.group(5));
|
||||
final Location destination = new Location(destinationId > 0 ? LocationType.STATION : LocationType.ANY, destinationId, null,
|
||||
destinationName);
|
||||
final String[] destinationPlaceAndName = splitPlaceAndName(ParserUtils.resolveEntities(mDepFine.group(5)));
|
||||
final Location destination = new Location(destinationId > 0 ? LocationType.STATION : LocationType.ANY, destinationId,
|
||||
destinationPlaceAndName[0], destinationPlaceAndName[1]);
|
||||
|
||||
final Departure dep = new Departure(plannedTime, null, line, position, destination, null, null);
|
||||
if (!departures.contains(dep))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue