mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 16:40:30 +00:00
workaround for infinite 'did you mean' loops
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@279 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
7e33f3eb1d
commit
43d542f8d9
5 changed files with 5 additions and 5 deletions
|
@ -208,7 +208,7 @@ public final class BahnProvider implements NetworkProvider
|
|||
{
|
||||
final String address = ParserUtils.resolveEntities(mAddresses.group(1)).trim();
|
||||
if (!addresses.contains(address))
|
||||
addresses.add(new Location(LocationType.ANY, 0, 0, 0, address));
|
||||
addresses.add(new Location(LocationType.ANY, 0, 0, 0, address + "!"));
|
||||
}
|
||||
|
||||
if (type.equals("REQ0JourneyStopsS0K"))
|
||||
|
|
|
@ -268,7 +268,7 @@ public class OebbProvider extends AbstractHafasProvider
|
|||
{
|
||||
final String address = ParserUtils.resolveEntities(mAddresses.group(1)).trim();
|
||||
if (!addresses.contains(address))
|
||||
addresses.add(new Location(LocationType.ANY, 0, 0, 0, address));
|
||||
addresses.add(new Location(LocationType.ANY, 0, 0, 0, address + "!"));
|
||||
}
|
||||
|
||||
if (type.equals("REQ0JourneyStopsS0K"))
|
||||
|
|
|
@ -210,7 +210,7 @@ public class RmvProvider extends AbstractHafasProvider
|
|||
{
|
||||
final String address = ParserUtils.resolveEntities(mAddresses.group(1)).trim();
|
||||
if (!addresses.contains(address))
|
||||
addresses.add(new Location(LocationType.ANY, 0, 0, 0, address));
|
||||
addresses.add(new Location(LocationType.ANY, 0, 0, 0, address + "!"));
|
||||
}
|
||||
|
||||
if (type == null)
|
||||
|
|
|
@ -187,7 +187,7 @@ public class SbbProvider extends AbstractHafasProvider
|
|||
{
|
||||
final String address = ParserUtils.resolveEntities(mAddresses.group(1)).trim();
|
||||
if (!addresses.contains(address))
|
||||
addresses.add(new Location(LocationType.ANY, 0, 0, 0, address));
|
||||
addresses.add(new Location(LocationType.ANY, 0, 0, 0, address + "!"));
|
||||
}
|
||||
|
||||
if (type.equals("REQ0JourneyStopsS0K"))
|
||||
|
|
|
@ -205,7 +205,7 @@ public final class VbbProvider implements NetworkProvider
|
|||
{
|
||||
final String address = ParserUtils.resolveEntities(mAddress.group(1));
|
||||
if (!addresses.contains(address))
|
||||
addresses.add(new Location(LocationType.ANY, 0, 0, 0, address));
|
||||
addresses.add(new Location(LocationType.ANY, 0, 0, 0, address + "!"));
|
||||
}
|
||||
|
||||
if (addresses.isEmpty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue