From 15930bf4458026a21d4378c5d87bfbc426f78cf8 Mon Sep 17 00:00:00 2001 From: "andreas.schildbach@gmail.com" Date: Sun, 21 Aug 2011 10:55:37 +0000 Subject: [PATCH] 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 --- src/de/schildbach/pte/dto/Location.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/de/schildbach/pte/dto/Location.java b/src/de/schildbach/pte/dto/Location.java index fde77678..5103613b 100644 --- a/src/de/schildbach/pte/dto/Location.java +++ b/src/de/schildbach/pte/dto/Location.java @@ -92,6 +92,14 @@ public final class Location implements Serializable return lat != 0 || lon != 0; } + public final String uniqueShortName() + { + if ("Bahnhof".equals(name)) + return place + ", " + name; + else + return name; + } + @Override public String toString() {