mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-15 09:00:36 +00:00
read name of assigned stops rather than nameWithPlace
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@494 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
9b00521836
commit
494611ad16
1 changed files with 4 additions and 2 deletions
|
@ -246,10 +246,9 @@ public abstract class AbstractEfaProvider implements NetworkProvider
|
|||
lon = Integer.parseInt(pp.getAttributeValue(null, "x"));
|
||||
}
|
||||
final String place = normalizeLocationName(XmlPullUtil.attr(pp, "place"));
|
||||
final String name = normalizeLocationName(pp.getAttributeValue(null, "nameWithPlace"));
|
||||
|
||||
XmlPullUtil.enter(pp, "itdOdvAssignedStop");
|
||||
// final String name = normalizeLocationName(pp.getText());
|
||||
final String name = normalizeLocationName(pp.getText());
|
||||
XmlPullUtil.exit(pp, "itdOdvAssignedStop");
|
||||
|
||||
return new Location(LocationType.STATION, id, lat, lon, place, name);
|
||||
|
@ -858,6 +857,9 @@ public abstract class AbstractEfaProvider implements NetworkProvider
|
|||
if (XmlPullUtil.test(pp, "serverMetaInfo"))
|
||||
XmlPullUtil.next(pp);
|
||||
|
||||
if (XmlPullUtil.test(pp, "itdVersionInfo"))
|
||||
XmlPullUtil.next(pp);
|
||||
|
||||
XmlPullUtil.enter(pp, "itdDepartureMonitorRequest");
|
||||
|
||||
if (!XmlPullUtil.test(pp, "itdOdv") || !"dm".equals(XmlPullUtil.attr(pp, "usage")))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue