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:
andreas.schildbach 2010-09-27 14:53:39 +00:00
parent a69ec021cc
commit 75ac46e270
2 changed files with 6 additions and 4 deletions

View file

@ -82,7 +82,7 @@ public class MvvProvider implements NetworkProvider
else if (type.equals("singlehouse")) else if (type.equals("singlehouse"))
results.add(new Autocomplete(LocationType.ADDRESS, 0, location)); results.add(new Autocomplete(LocationType.ADDRESS, 0, location));
else if (type.equals("poi")) else if (type.equals("poi"))
results.add(new Autocomplete(LocationType.ANY, 0, location)); results.add(new Autocomplete(LocationType.POI, 0, location));
else else
throw new IllegalStateException("unknown type " + type + " on " + uri); throw new IllegalStateException("unknown type " + type + " on " + uri);
} }
@ -303,9 +303,10 @@ public class MvvProvider implements NetworkProvider
return "stop"; return "stop";
if (locationType == LocationType.ADDRESS) if (locationType == LocationType.ADDRESS)
return "any"; // strange, matches with anyObjFilter return "any"; // strange, matches with anyObjFilter
if (locationType == LocationType.POI)
return "any";
if (locationType == LocationType.ANY) if (locationType == LocationType.ANY)
return "any"; return "any";
// TODO poi
throw new IllegalArgumentException(locationType.toString()); throw new IllegalArgumentException(locationType.toString());
} }
@ -315,9 +316,10 @@ public class MvvProvider implements NetworkProvider
return 2; return 2;
if (locationType == LocationType.ADDRESS) if (locationType == LocationType.ADDRESS)
return 12; return 12;
if (locationType == LocationType.POI)
return 32;
if (locationType == LocationType.ANY) if (locationType == LocationType.ANY)
return 0; return 0;
// TODO poi=32
throw new IllegalArgumentException(locationType.toString()); throw new IllegalArgumentException(locationType.toString());
} }

View file

@ -35,7 +35,7 @@ public interface NetworkProvider
public enum LocationType public enum LocationType
{ {
ANY, STATION, WGS84, ADDRESS ANY, STATION, WGS84, ADDRESS, POI
} }
public enum WalkSpeed public enum WalkSpeed