ByteArrayOutputStream baos = new ByteArrayOutputStream();
outputStream = new DataOutputStream(baos);
try {
outputStream.writeUTF(location);
outputStream.writeFloat(latitude);
outputStream.writeFloat(longitude);
outputStream.writeByte(timeZoneSrc);
outputStream.writeShort(timeZoneMin) ;
outputStream.writeBoolean(isDSTOn);
outputStream.writeShort(altitude);
outputStream.writeShort(temperature);