mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 01:10:02 +00:00
Fix NetworkProvider.hasCapabilities().
This commit is contained in:
parent
d066f17807
commit
4d46299fb1
73 changed files with 61 additions and 606 deletions
|
@ -187,6 +187,15 @@ public abstract class AbstractTsiProvider extends AbstractNetworkProvider
|
|||
apiBase + (stopFinderEndpoint != null ? stopFinderEndpoint : DEFAULT_STOPFINDER_ENDPOINT));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean hasCapability(final Capability capability)
|
||||
{
|
||||
if (capability == Capability.DEPARTURES)
|
||||
return false;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
public SuggestLocationsResult suggestLocations(final CharSequence constraint) throws IOException
|
||||
{
|
||||
final StringBuilder parameters = buildCommonRequestParams("SearchTripPoint", "json");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue