Fix place parsing of intermediate stops for recent EFA based providers.

This commit is contained in:
Andreas Schildbach 2014-03-14 13:58:28 +01:00
parent 0643bf8de6
commit d6fbe6669a

View file

@ -1870,7 +1870,10 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider
{ {
final int id = Integer.parseInt(pp.getAttributeValue(null, "stopID")); final int id = Integer.parseInt(pp.getAttributeValue(null, "stopID"));
final String place = normalizeLocationName(pp.getAttributeValue(null, "locality")); String place = normalizeLocationName(pp.getAttributeValue(null, "locality"));
if (place == null)
place = normalizeLocationName(pp.getAttributeValue(null, "place"));
String name = normalizeLocationName(pp.getAttributeValue(null, "nameWO")); String name = normalizeLocationName(pp.getAttributeValue(null, "nameWO"));
if (name == null) if (name == null)
name = normalizeLocationName(pp.getAttributeValue(null, "name")); name = normalizeLocationName(pp.getAttributeValue(null, "name"));