mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
renamed method
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@682 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
ee172bc0a5
commit
caaf389634
9 changed files with 40 additions and 40 deletions
|
@ -71,7 +71,7 @@ public class InvgProvider extends AbstractHafasProvider
|
|||
private static final String[] PLACES = { "Ingolstadt", "München" };
|
||||
|
||||
@Override
|
||||
protected String[] splitNameAndPlace(final String name)
|
||||
protected String[] splitPlaceAndName(final String name)
|
||||
{
|
||||
for (final String place : PLACES)
|
||||
{
|
||||
|
@ -81,7 +81,7 @@ public class InvgProvider extends AbstractHafasProvider
|
|||
return new String[] { place, name.substring(place.length() + 2) };
|
||||
}
|
||||
|
||||
return super.splitNameAndPlace(name);
|
||||
return super.splitPlaceAndName(name);
|
||||
}
|
||||
|
||||
public NearbyStationsResult queryNearbyStations(final Location location, final int maxDistance, final int maxStations) throws IOException
|
||||
|
@ -246,8 +246,8 @@ public class InvgProvider extends AbstractHafasProvider
|
|||
}
|
||||
}
|
||||
|
||||
final String[] nameAndPlace = splitNameAndPlace(location);
|
||||
result.stationDepartures.add(new StationDepartures(new Location(LocationType.STATION, locationId, nameAndPlace[0], nameAndPlace[1]),
|
||||
final String[] placeAndName = splitPlaceAndName(location);
|
||||
result.stationDepartures.add(new StationDepartures(new Location(LocationType.STATION, locationId, placeAndName[0], placeAndName[1]),
|
||||
departures, null));
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue