mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-14 08:40:29 +00:00
use unique short names of stations where appropriate
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@748 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
5b381b2225
commit
15930bf445
1 changed files with 8 additions and 0 deletions
|
@ -92,6 +92,14 @@ public final class Location implements Serializable
|
||||||
return lat != 0 || lon != 0;
|
return lat != 0 || lon != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final String uniqueShortName()
|
||||||
|
{
|
||||||
|
if ("Bahnhof".equals(name))
|
||||||
|
return place + ", " + name;
|
||||||
|
else
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue