support poi in directions

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@567 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-04-16 09:35:35 +00:00
parent ab24e4284b
commit ff84a2f29e

View file

@ -312,6 +312,8 @@ public final class BvgProvider extends AbstractHafasProvider
return 1;
if (type == LocationType.ADDRESS)
return 2;
if (type == LocationType.POI)
return 4;
if (type == LocationType.ANY)
return 255;
throw new IllegalArgumentException(type.toString());
@ -396,6 +398,8 @@ public final class BvgProvider extends AbstractHafasProvider
type = LocationType.ANY;
else if ("HST".equals(typeStr))
type = LocationType.STATION;
else if ("POI".equals(typeStr))
type = LocationType.POI;
else if ("ADR".equals(typeStr))
type = LocationType.ADDRESS;
else