uniform method order

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@663 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-05-27 16:04:39 +00:00
parent 56465ede5e
commit c9fac86b2a
58 changed files with 967 additions and 968 deletions

View file

@ -64,11 +64,6 @@ public class ShProvider extends AbstractHafasProvider
return false;
}
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
{
return xmlMLcReq(constraint);
}
public NearbyStationsResult queryNearbyStations(final Location location, final int maxDistance, final int maxStations) throws IOException
{
final StringBuilder uri = new StringBuilder(API_BASE);
@ -87,23 +82,6 @@ public class ShProvider extends AbstractHafasProvider
}
}
@Override
protected char normalizeType(final String type)
{
final String ucType = type.toUpperCase();
if ("KBS".equals(ucType))
return 'B';
if ("KB1".equals(ucType))
return 'B';
final char t = super.normalizeType(type);
if (t != 0)
return t;
return 0;
}
private String departuresQueryUri(final int stationId, final int maxDepartures)
{
final StringBuilder uri = new StringBuilder();
@ -257,4 +235,26 @@ public class ShProvider extends AbstractHafasProvider
throw new IllegalArgumentException("cannot parse '" + page + "' on " + stationId);
}
}
public List<Location> autocompleteStations(final CharSequence constraint) throws IOException
{
return xmlMLcReq(constraint);
}
@Override
protected char normalizeType(final String type)
{
final String ucType = type.toUpperCase();
if ("KBS".equals(ucType))
return 'B';
if ("KB1".equals(ucType))
return 'B';
final char t = super.normalizeType(type);
if (t != 0)
return t;
return 0;
}
}