mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
Fix autocomplete coverage for North Rhine-Westphalia.
This commit is contained in:
parent
64f6b31d51
commit
a83e7d4fc2
2 changed files with 27 additions and 10 deletions
|
@ -17,13 +17,9 @@
|
|||
|
||||
package de.schildbach.pte;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import de.schildbach.pte.dto.Location;
|
||||
import de.schildbach.pte.dto.LocationType;
|
||||
import de.schildbach.pte.dto.Style;
|
||||
|
||||
/**
|
||||
|
@ -39,6 +35,7 @@ public class VrrProvider extends AbstractEfaProvider
|
|||
super(API_BASE);
|
||||
|
||||
setUseRouteIndexAsTripId(false);
|
||||
setIncludeRegionId(false);
|
||||
setNeedsSpEncId(true);
|
||||
setStyles(STYLES);
|
||||
}
|
||||
|
@ -57,12 +54,6 @@ public class VrrProvider extends AbstractEfaProvider
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
|
||||
{
|
||||
return xmlStopfinderRequest(new Location(LocationType.ANY, 0, null, constraint.toString()));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String parseLine(final String mot, final String symbol, final String name, final String longName, final String trainType,
|
||||
final String trainNum, final String trainName)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue