mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-07 19:08:49 +00:00
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:
parent
ab24e4284b
commit
ff84a2f29e
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue