From b18ec864a9696d2fbe135e01fb3bc3addfc754dc Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Sun, 9 Oct 2016 10:43:24 +0200 Subject: [PATCH] VGN: Fix umlauts in suggested locations. --- enabler/src/de/schildbach/pte/VgnProvider.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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,