fixed ambiguous check if station identified by name only

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@562 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-04-15 07:40:13 +00:00
parent dfe99ab68d
commit cd5d382da4

View file

@ -288,7 +288,11 @@ public final class BvgProvider extends AbstractHafasProvider
}
if (location.name != null)
{
uri.append("&REQ0JourneyStops").append(paramSuffix).append("G=").append(ParserUtils.urlEncode(location.name));
if (location.type != LocationType.ANY)
uri.append('!');
}
}
private static final int locationTypeValue(final Location location)