mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 16:59:51 +00:00
parse place and nameWithPlace for efa based providers
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@439 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
7a077f56c7
commit
7ca487c632
5 changed files with 57 additions and 26 deletions
|
@ -146,7 +146,7 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
final int parsedLon = (int) (Float.parseFloat(mOwn.group(2)) * 1E6);
|
||||
final int parsedLat = (int) (Float.parseFloat(mOwn.group(3)) * 1E6);
|
||||
final String parsedName = ParserUtils.urlDecode(mOwn.group(4), "ISO-8859-1");
|
||||
stations.add(new Station(parsedId, parsedName, parsedLat, parsedLon, 0, null, null));
|
||||
stations.add(new Station(parsedId, null, parsedName, null, parsedLat, parsedLon, 0, null, null));
|
||||
}
|
||||
|
||||
final Matcher mPage = P_NEARBY_PAGE.matcher(page);
|
||||
|
@ -162,7 +162,7 @@ public final class BvgProvider extends AbstractHafasProvider
|
|||
{
|
||||
final int parsedId = Integer.parseInt(mFineLocation.group(1));
|
||||
final String parsedName = ParserUtils.resolveEntities(mFineLocation.group(2));
|
||||
stations.add(new Station(parsedId, parsedName, 0, 0, 0, null, null));
|
||||
stations.add(new Station(parsedId, null, parsedName, null, 0, 0, 0, null, null));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue