added hasId() to Location

git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@513 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
andreas.schildbach@gmail.com 2011-02-28 11:55:08 +00:00
parent 33e63d9b1f
commit 3b2b2bb675
5 changed files with 12 additions and 6 deletions

View file

@ -1636,7 +1636,7 @@ public abstract class AbstractEfaProvider implements NetworkProvider
protected static final String locationValue(final Location location)
{
if ((location.type == LocationType.STATION || location.type == LocationType.POI) && location.id != 0)
if ((location.type == LocationType.STATION || location.type == LocationType.POI) && location.hasId())
return Integer.toString(location.id);
else
return location.name;