handle 'Hauptbahnhof' when shortening names

This commit is contained in:
Andreas Schildbach 2012-03-02 16:52:42 +01:00
parent d47c5ba0bf
commit 0443dfcef4

View file

@ -94,7 +94,7 @@ public final class Location implements Serializable
public final String uniqueShortName()
{
if ("Bahnhof".equals(name) || "Dorf".equals(name) || "Kirche".equals(name))
if ("Hauptbahnhof".equals(name) || "Bahnhof".equals(name) || "Dorf".equals(name) || "Kirche".equals(name))
return place + ", " + name;
else
return name;