mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 00:30:31 +00:00
Migrate from EnumSet<LocationType> in interfaces to just Set<LocationType>.
This commit is contained in:
parent
d84e0af608
commit
fe5a2a8453
10 changed files with 26 additions and 29 deletions
|
@ -138,7 +138,7 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
|||
}
|
||||
|
||||
@Override
|
||||
public NearbyLocationsResult queryNearbyLocations(final EnumSet<LocationType> types, final Location location,
|
||||
public NearbyLocationsResult queryNearbyLocations(final Set<LocationType> types, final Location location,
|
||||
final int maxDistance, final int maxLocations) throws IOException {
|
||||
if (location.hasCoord())
|
||||
return jsonLocGeoPos(types, location.coord, maxDistance, maxLocations);
|
||||
|
@ -171,7 +171,7 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
|||
jsonContext.products, jsonContext.walkSpeed, later ? jsonContext.laterContext : jsonContext.earlierContext);
|
||||
}
|
||||
|
||||
protected final NearbyLocationsResult jsonLocGeoPos(final EnumSet<LocationType> types, final Point coord,
|
||||
protected final NearbyLocationsResult jsonLocGeoPos(final Set<LocationType> types, final Point coord,
|
||||
int maxDistance, int maxLocations) throws IOException {
|
||||
if (maxDistance == 0)
|
||||
maxDistance = DEFAULT_MAX_DISTANCE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue