mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 09:19:57 +00:00
split place and name for some Frankfurt stations
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@463 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
0184b5dee3
commit
b2ba8a1c79
3 changed files with 32 additions and 2 deletions
|
@ -64,6 +64,11 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
this.accessId = accessId;
|
||||
}
|
||||
|
||||
protected String[] splitNameAndPlace(final String name)
|
||||
{
|
||||
return new String[] { null, name };
|
||||
}
|
||||
|
||||
private final String wrap(final String request)
|
||||
{
|
||||
return "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>" //
|
||||
|
@ -766,7 +771,8 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
parsedLat = Integer.parseInt(mFineCoords.group(2));
|
||||
}
|
||||
|
||||
stations.add(new Station(parsedId, null, parsedName, null, parsedLat, parsedLon, 0, null, null));
|
||||
final String[] nameAndPlace = splitNameAndPlace(parsedName);
|
||||
stations.add(new Station(parsedId, nameAndPlace[0], nameAndPlace[1], parsedName, parsedLat, parsedLon, 0, null, null));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue