--- a/src/main/scala/Workout.scala Fri Aug 26 11:44:21 2011 -0400
+++ b/src/main/scala/Workout.scala Fri Aug 26 12:42:52 2011 -0400
@@ -67,8 +67,8 @@
val tString = """"t": "%s"""" format timestamp.toString
val cString = {
c map {
- case (lon, lat, Some(alt)) => ", [%f, %f, %f]" format (lon, lat, alt)
- case (lon, lat, None) => ", [%f, %f]" format (lon, lat)
+ case (lon, lat, Some(alt)) => """, "c": [%f, %f, %f]""" format (lon, lat, alt)
+ case (lon, lat, None) => """, "c": [%f, %f]""" format (lon, lat)
} getOrElse ""
}
val sString = status map { s => """, "s": "%s"""" format s.toString } getOrElse ""