diff --git a/enabler/src/de/schildbach/pte/VgnProvider.java b/enabler/src/de/schildbach/pte/VgnProvider.java index fac3a952..47e0041f 100644 --- a/enabler/src/de/schildbach/pte/VgnProvider.java +++ b/enabler/src/de/schildbach/pte/VgnProvider.java @@ -17,6 +17,7 @@ package de.schildbach.pte; +import java.io.IOException; import java.util.Collection; import java.util.Date; import java.util.Set; @@ -25,7 +26,9 @@ import javax.annotation.Nullable; import de.schildbach.pte.dto.Line; import de.schildbach.pte.dto.Location; +import de.schildbach.pte.dto.LocationType; import de.schildbach.pte.dto.Product; +import de.schildbach.pte.dto.SuggestLocationsResult; /** * @author Andreas Schildbach @@ -54,6 +57,11 @@ public class VgnProvider extends AbstractEfaProvider { return super.parseLine(id, network, mot, symbol, name, longName, trainType, trainNum, trainName); } + @Override + public SuggestLocationsResult suggestLocations(final CharSequence constraint) throws IOException { + return xmlStopfinderRequest(new Location(LocationType.STATION, null, null, constraint.toString())); + } + @Override protected String xsltTripRequestParameters(final Location from, final @Nullable Location via, final Location to, final Date date, final boolean dep, final @Nullable Collection products,