mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 17:29:51 +00:00
Use common method for querying for nearby stations (Hafas).
This commit is contained in:
parent
fc91b8c7cb
commit
31b89f7ef8
26 changed files with 34 additions and 336 deletions
|
@ -175,6 +175,7 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
private final static Pattern P_NEARBY_FINE_LOCATION = Pattern.compile("input=(\\d+)&[^\"]*\">([^<]*)<");
|
||||
private static final Pattern P_NEARBY_ERRORS = Pattern.compile("(Haltestellen in der Umgebung anzeigen)");
|
||||
|
||||
@Override
|
||||
public NearbyStationsResult queryNearbyStations(final Location location, final int maxDistance, final int maxStations) throws IOException
|
||||
{
|
||||
if (location.hasLocation())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue