Work around broken XML for Leipzig.

This commit is contained in:
Andreas Schildbach 2014-06-22 13:51:20 +02:00
parent dc6256df91
commit f96c5df431

View file

@ -25,6 +25,7 @@ import de.schildbach.pte.dto.LocationType;
import de.schildbach.pte.dto.NearbyStationsResult;
import de.schildbach.pte.dto.Product;
import de.schildbach.pte.dto.QueryDeparturesResult;
import de.schildbach.pte.util.StringReplaceReader;
/**
* @author Andreas Schildbach
@ -161,6 +162,12 @@ public class NasaProvider extends AbstractHafasProvider
return xmlQueryDepartures(uri.toString(), stationId);
}
@Override
protected void addCustomReplaces(final StringReplaceReader reader)
{
reader.replace("\"Florian Geyer\"", "Florian Geyer");
}
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
{
return xmlMLcReq(constraint);