be more conservative with parsing of names when scanning for stations by name

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@481 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-02-03 16:16:51 +00:00
parent 398fa73562
commit 0e3c4fea7f

View file

@ -352,7 +352,7 @@ public abstract class AbstractEfaProvider implements NetworkProvider
final Location location = processOdvNameElem(pp, place); final Location location = processOdvNameElem(pp, place);
if (location.type == LocationType.STATION) if (location.type == LocationType.STATION)
{ {
final Station newStation = new Station(location.id, null, location.name, null, location.lat, location.lon, 0, null, null); final Station newStation = new Station(location.id, null, null, location.name, location.lat, location.lon, 0, null, null);
if (!stations.contains(newStation)) if (!stations.contains(newStation))
stations.add(newStation); stations.add(newStation);
} }