aboutsummaryrefslogtreecommitdiff
path: root/src/net/cbaines/suma/BusStop.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/cbaines/suma/BusStop.java')
-rw-r--r--src/net/cbaines/suma/BusStop.java69
1 files changed, 35 insertions, 34 deletions
diff --git a/src/net/cbaines/suma/BusStop.java b/src/net/cbaines/suma/BusStop.java
index 1e9faaa..750f2d1 100644
--- a/src/net/cbaines/suma/BusStop.java
+++ b/src/net/cbaines/suma/BusStop.java
@@ -32,45 +32,46 @@ import com.j256.ormlite.table.DatabaseTable;
*/
@DatabaseTable(tableName = "busstops")
public class BusStop extends POI {
- public static final String DESCRIPTION_FIELD_NAME = "description";
- public static final String BAY_FIELD_NAME = "bay";
- public static final String ROUTES_FIELD_NAME = "bay";
- public static final String UNI_LINK_FIELD_NAME = "uniLink";
+ public static final String DESCRIPTION_FIELD_NAME = "description";
+ public static final String BAY_FIELD_NAME = "bay";
+ public static final String ROUTES_FIELD_NAME = "bay";
+ public static final String UNI_LINK_FIELD_NAME = "uniLink";
- /**
- * Description e.g. "Bournemouth Rd os Asda S"
- */
- @DatabaseField(canBeNull = true)
- String description;
+ /**
+ * Description e.g. "Bournemouth Rd os Asda S"
+ */
+ @DatabaseField(canBeNull = true)
+ String description;
- /**
- * Unknown, "" for all UniLink stops
- */
- @DatabaseField(canBeNull = true)
- String bay;
+ /**
+ * Unknown, "" for all UniLink stops
+ */
+ @DatabaseField(canBeNull = true)
+ String bay;
- /**
- * Used to speed up accessing the relevent uni link routes for a bus stop, this is not a uni link stop
- */
- @DatabaseField(canBeNull = false)
- byte routes;
+ /**
+ * Used to speed up accessing the relevent uni link routes for a bus stop,
+ * this is not a uni link stop
+ */
+ @DatabaseField(canBeNull = false)
+ byte routes;
- @DatabaseField(canBeNull = false)
- boolean uniLink;
+ @DatabaseField(canBeNull = false)
+ boolean uniLink;
- public BusStop(String location, String description, String bay, GeoPoint point) {
- this.id = location;
- this.description = description;
- this.bay = bay;
- this.point = point;
- this.type = POI.BUS_STOP;
- }
+ public BusStop(String location, String description, String bay, GeoPoint point) {
+ this.id = location;
+ this.description = description;
+ this.bay = bay;
+ this.point = point;
+ this.type = POI.BUS_STOP;
+ }
- BusStop() {
- this.type = POI.BUS_STOP;
- }
+ BusStop() {
+ this.type = POI.BUS_STOP;
+ }
- public String toString() {
- return description + " (" + id + ")";
- }
+ public String toString() {
+ return description + " (" + id + ")";
+ }
}