mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 07:49:49 +00:00
points of interest for Munich
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@207 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
a69ec021cc
commit
75ac46e270
2 changed files with 6 additions and 4 deletions
|
@ -82,7 +82,7 @@ public class MvvProvider implements NetworkProvider
|
|||
else if (type.equals("singlehouse"))
|
||||
results.add(new Autocomplete(LocationType.ADDRESS, 0, location));
|
||||
else if (type.equals("poi"))
|
||||
results.add(new Autocomplete(LocationType.ANY, 0, location));
|
||||
results.add(new Autocomplete(LocationType.POI, 0, location));
|
||||
else
|
||||
throw new IllegalStateException("unknown type " + type + " on " + uri);
|
||||
}
|
||||
|
@ -303,9 +303,10 @@ public class MvvProvider implements NetworkProvider
|
|||
return "stop";
|
||||
if (locationType == LocationType.ADDRESS)
|
||||
return "any"; // strange, matches with anyObjFilter
|
||||
if (locationType == LocationType.POI)
|
||||
return "any";
|
||||
if (locationType == LocationType.ANY)
|
||||
return "any";
|
||||
// TODO poi
|
||||
throw new IllegalArgumentException(locationType.toString());
|
||||
}
|
||||
|
||||
|
@ -315,9 +316,10 @@ public class MvvProvider implements NetworkProvider
|
|||
return 2;
|
||||
if (locationType == LocationType.ADDRESS)
|
||||
return 12;
|
||||
if (locationType == LocationType.POI)
|
||||
return 32;
|
||||
if (locationType == LocationType.ANY)
|
||||
return 0;
|
||||
// TODO poi=32
|
||||
throw new IllegalArgumentException(locationType.toString());
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ public interface NetworkProvider
|
|||
|
||||
public enum LocationType
|
||||
{
|
||||
ANY, STATION, WGS84, ADDRESS
|
||||
ANY, STATION, WGS84, ADDRESS, POI
|
||||
}
|
||||
|
||||
public enum WalkSpeed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue