mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 08:49:58 +00:00
use location id as unique short name as a last resort
This commit is contained in:
parent
149ec16a82
commit
7aec8c20b7
1 changed files with 5 additions and 1 deletions
|
@ -96,8 +96,12 @@ public final class Location implements Serializable
|
|||
{
|
||||
if ("Hauptbahnhof".equals(name) || "Hbf".equals(name) || "Bahnhof".equals(name) || "Dorf".equals(name) || "Kirche".equals(name))
|
||||
return place + ", " + name;
|
||||
else
|
||||
else if (name != null)
|
||||
return name;
|
||||
else if (hasId())
|
||||
return Integer.toString(id);
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue